forked from xlwings/xlwings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
67 lines (58 loc) · 2.36 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
image: Visual Studio 2015
environment:
TWINE_USERNAME: zoomeranalytics
TWINE_PASSWORD:
secure: oSCJsPDE2f8NMJox4JeOs4MzM9KfH4vYbmwUS5FRCzY=
ASPOSE_LICENSE:
secure: je1oFjicBTA/L3vv55btbjk101JF7M0IQeGMbMcO3N8=
matrix:
- PYTHON: "C:\\Miniconda36-x64"
init:
# Set "build version number" to "short-commit-hash" or when tagged to "tag name" (Travis style)
- ps: $env:path = "$env:PYTHON;$env:PYTHON\Scripts;$env:path"
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
}
else
{
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
}
install:
# Python packages
- pip install twine
- conda install -c pythonnet pythonnet -y
# Download Aspose and decrypt license file
- ps: wget https://www.nuget.org/api/v2/package/Aspose.Cells/17.12.0 -OutFile $env:APPVEYOR_BUILD_FOLDER\aspose.cells.nupkg
- 7z x %APPVEYOR_BUILD_FOLDER%\\aspose.cells.nupkg -o%APPVEYOR_BUILD_FOLDER%\\aspose.cells
- nuget install secure-file -ExcludeVersion
- secure-file\tools\secure-file -decrypt scripts\Aspose.Cells.lic.enc -secret %ASPOSE_LICENSE%
build_script:
- msbuild src/xlwings.sln /p:Configuration=Release
- msbuild src/xlwings.sln /p:Configuration=Release /p:Platform=x64
- cd %APPVEYOR_BUILD_FOLDER% && rename xlwings32.dll xlwings32-%APPVEYOR_BUILD_VERSION%.dll
- cd %APPVEYOR_BUILD_FOLDER% && rename xlwings64.dll xlwings64-%APPVEYOR_BUILD_VERSION%.dll
- ps: (Get-Content $env:APPVEYOR_BUILD_FOLDER\xlwings\__init__.py) | ForEach-Object { $_ -replace "__version__ = 'dev'", "__version__ = '$env:APPVEYOR_BUILD_VERSION'" } | Set-Content $env:APPVEYOR_BUILD_FOLDER\xlwings\__init__.py
- python scripts/build_excel_files.py
- python setup.py sdist
artifacts:
- path: dist\*
- path: xlwings\addin\xlwings.xlam
test_script:
# Just attempt to install since the full test suite cannot be run
- pip install dist\xlwings-%APPVEYOR_BUILD_VERSION%.tar.gz
- python -c "import xlwings"
on_success:
- ps: if ($env:APPVEYOR_REPO_TAG -eq $TRUE) { twine upload dist/* }
deploy:
- provider: GitHub
release: $(APPVEYOR_REPO_TAG_NAME)
description: 'v$(APPVEYOR_REPO_TAG_NAME)'
auth_token:
secure: Zz8c3qkAY2QM49eQ+iqNryTJV/w2/Bv3BWnCiSj1s5FNGNT+hKMU40y8OS0QUdKr
artifact: /.*\.xlam/
draft: false
prerelease: false
on:
appveyor_repo_tag: true