Skip to content

Commit 08370d5

Browse files
committed
Fix appveyor
1 parent c8d083f commit 08370d5

1 file changed

Lines changed: 36 additions & 20 deletions

File tree

appveyor.yml

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,52 @@ environment:
55
secure: KZdEfjKCVSUL334LJP/iPqWKfzhoIm43D4VZwJcEb0k=
66

77
matrix:
8-
- python: C:/Python27/python.exe
9-
twine: C:/Python27/Scripts/twine.exe
10-
- python: C:/Python35/python.exe
11-
twine: C:/Python35/Scripts/twine.exe
12-
- python: C:/Python36/python.exe
13-
twine: C:/Python36/Scripts/twine.exe
14-
- python: C:/Python27-x64/python.exe
15-
twine: C:/Python27-x64/Scripts/twine.exe
16-
- python: C:/Python35-x64/python.exe
17-
twine: C:/Python35-x64/Scripts/twine.exe
18-
- python: C:/Python36-x64/python.exe
19-
twine: C:/Python36-x64/Scripts/twine.exe
8+
- PYTHON: C:\Python27
9+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
10+
VCVARSALLPATH: C:\"Program Files (x86)\Microsoft Visual Studio 14.0"\VC\vcvarsall.bat
11+
VCVARSALLARCH: x86
12+
- PYTHON: C:\Python35
13+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
14+
VCVARSALLPATH: C:\"Program Files (x86)\Microsoft Visual Studio 14.0"\VC\vcvarsall.bat
15+
VCVARSALLARCH: x86
16+
- PYTHON: C:\Python36
17+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
18+
VCVARSALLPATH: C:\"Program Files (x86)\Microsoft Visual Studio 14.0"\VC\vcvarsall.bat
19+
VCVARSALLARCH: x86
20+
- PYTHON: C:\Python27-x64
21+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
22+
VCVARSALLPATH: C:\"Program Files (x86)\Microsoft Visual Studio 14.0"\VC\vcvarsall.bat
23+
VCVARSALLARCH: x64
24+
- PYTHON: C:\Python35-x64
25+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
26+
VCVARSALLPATH: C:\"Program Files (x86)\Microsoft Visual Studio 14.0"\VC\vcvarsall.bat
27+
VCVARSALLARCH: x64
28+
- PYTHON: C:\Python36-x64
29+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
30+
VCVARSALLPATH: C:\"Program Files (x86)\Microsoft Visual Studio 14.0"\VC\vcvarsall.bat
31+
VCVARSALLARCH: x64
32+
33+
init:
34+
- call %VCVARSALLPATH% %VCVARSALLARCH%
35+
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
2036

2137
install:
22-
- ps: git submodule update --init --recursive
23-
- ps: $env:python -m pip install --upgrade pip setuptools wheel twine
24-
- ps: choco install -y swig
38+
- git submodule update --init --recursive
39+
- choco install -y swig
40+
- python -m pip install --upgrade pip setuptools wheel twine
2541

2642
build: off
2743

2844
test_script:
29-
- ps: $env:python setup.py test
45+
- python setup.py test
3046

3147
after_test:
32-
- ps: $env:python setup.py bdist_wheel
33-
- ps: $env:python setup.py bdist_wininst
34-
- ps: $env:python setup.py bdist_msi
48+
- python setup.py bdist_wheel
49+
- python setup.py bdist_wininst
50+
- python setup.py bdist_msi
3551

3652
artifacts:
3753
- path: dist/*
3854

3955
on_success:
40-
- ps: if ($env:appveyor_repo_tag -eq $true) {$env:twine upload -u bambucha -p %password% dist/*}
56+
- ps: if ($env:appveyor_repo_tag -eq $true) {twine upload -u bambucha -p $env:password dist/*}

0 commit comments

Comments
 (0)