-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
86 lines (67 loc) · 2.78 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
environment:
global:
SDL2_VERSION: '2.0.4'
SDL2_IMAGE_VERSION: '2.0.1'
SDL2_MIXER_VERSION: '2.0.1'
SDL2_TTF_VERSION: '2.0.14'
USER:
secure: nmGcMi0wFW8VLkwwxgUvUg==
PASSWORD:
secure: 8SYGM59fuZFyAh5bq7sthkVfRPHX6sw8X5s0MJ0r/zM=
matrix:
# Pre-installed Python versions, which Appveyor may upgrade to
# a later point release.
# See: http://www.appveyor.com/docs/installed-software#python
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.x" # currently 2.7.12
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python33"
PYTHON_VERSION: "3.3.x" # currently 3.3.5
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python34"
PYTHON_VERSION: "3.4.x" # currently 3.4.4
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python35"
PYTHON_VERSION: "3.5.x" # currently 3.5.2
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x" # currently 2.7.12
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python33-x64"
PYTHON_VERSION: "3.3.x" # currently 3.3.5
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python34-x64"
PYTHON_VERSION: "3.4.x" # currently 3.4.4
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.x" # currently 3.5.2
PYTHON_ARCH: "64"
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install:
- ps: "Start-FileDownload https://www.libsdl.org/release/SDL2-devel-$($env:SDL2_VERSION)-VC.zip"
- cmd: "7z x SDL2-devel-%SDL2_VERSION%-VC.zip"
- ps: "Start-FileDownload https://www.libsdl.org/projects/SDL_image/release/SDL2_image-devel-$($env:SDL2_IMAGE_VERSION)-VC.zip"
- cmd: "7z x SDL2_image-devel-%SDL2_IMAGE_VERSION%-VC.zip"
- cmd: "xcopy /E /Y SDL2_image-%SDL2_IMAGE_VERSION%\\* SDL2-%SDL2_VERSION%"
- ps: "Start-FileDownload https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-$($env:SDL2_MIXER_VERSION)-VC.zip"
- cmd: "7z x SDL2_mixer-devel-%SDL2_MIXER_VERSION%-VC.zip"
- cmd: "xcopy /E /Y SDL2_mixer-%SDL2_MIXER_VERSION%\\* SDL2-%SDL2_VERSION%"
- ps: "Start-FileDownload https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-devel-$($env:SDL2_TTF_VERSION)-VC.zip"
- cmd: "7z x SDL2_ttf-devel-%SDL2_TTF_VERSION%-VC.zip"
- cmd: "xcopy /E /Y SDL2_ttf-%SDL2_TTF_VERSION%\\* SDL2-%SDL2_VERSION%"
- cmd: "set SDL2_DEVEL_PATH=%APPVEYOR_BUILD_FOLDER%\\SDL2-%SDL2_VERSION%"
- cmd: "set PATH=C:\\MinGW\\bin;%PATH%"
build: off
before_test:
- "%PYTHON%/python -m pip install --upgrade setuptools nose2"
- "%PYTHON%/python setup.py develop"
test_script:
- "%PYTHON%/python -m nose2"
after_test:
- "%PYTHON%/python -m pip install --upgrade wheel twine"
- "%PYTHON%/python setup.py bdist_wheel"
artifacts:
- path: dist\*
on_success:
- "if defined APPVEYOR_REPO_TAG_NAME %PYTHON%/Scripts/twine upload -u %USER% -p %PASSWORD% dist/* && exit 0"