-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
101 lines (88 loc) · 3.68 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
environment:
global:
CYG_ROOT: C:/cygwin
CYG_MIRROR: http://cygwin.uib.no
CYG_CACHE: C:/cygwin/var/cache/setup
matrix:
-
CYG_ARCH: x86_64
PYTHON: C:/cygwin/bin/python2.7.exe
PYTHON_PLATFORM: cygwin
-
CYG_ARCH: x86
PYTHON: C:/python27/python.exe
PYTHON_DIR: 'C:\\python27'
PYTHON_VERSION: '2.7'
-
CYG_ARCH: x86
PYTHON: C:/python27/python.exe
PYTHON_DIR: 'C:\\python27'
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
-
CYG_ARCH: x86_64
PYTHON: C:/python27/python.exe
PYTHON_DIR: 'C:\\python27'
PYTHON_VERSION: '2.7'
-
CYG_ARCH: x86_64
PYTHON: C:/python27/python.exe
PYTHON_DIR: 'C:\\python27'
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
-
CYG_ARCH: x86
PYTHON: C:/python26/python.exe
PYTHON_DIR: 'C:\\python26'
PYTHON_VERSION: '2.6'
-
CYG_ARCH: x86
PYTHON: C:/python26/python.exe
PYTHON_DIR: 'C:\\python26'
PYTHON_VERSION: '2.6'
PYTHON_ARCH: '32'
-
CYG_ARCH: x86_64
PYTHON: C:/python26/python.exe
PYTHON_DIR: 'C:\\python26'
PYTHON_VERSION: '2.6'
-
CYG_ARCH: x86_64
PYTHON: C:/python26/python.exe
PYTHON_DIR: 'C:\\python26'
PYTHON_VERSION: '2.6'
PYTHON_ARCH: '32'
init:
- 'echo OS architecture: %PROCESSOR_ARCHITECTURE%'
install:
- 'if not "%PYTHON_PLATFORM%" == "cygwin" dir "C:/python*"'
- 'if not "%PYTHON_PLATFORM%" == "cygwin" if exist "%PYTHON_DIR%" rmdir /s /q "%PYTHON_DIR%"'
- 'if not "%PYTHON_PLATFORM%" == "cygwin" dir "C:/python*"'
- 'if not "%PYTHON_PLATFORM%" == "cygwin" if "%PYTHON_ARCH%" == "" set PYTHON_ARCH=64'
- 'if not "%PYTHON_PLATFORM%" == "cygwin" powershell ./.appveyor/install.ps1'
- 'if not "%PYTHON_PLATFORM%" == "cygwin" dir "C:/python*"'
- 'appveyor DownloadFile http://cygwin.com/setup-%CYG_ARCH%.exe -FileName setup.exe'
- 'setup.exe -qnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P make -P python -P gnupg > NUL'
- '%CYG_ROOT%/bin/bash -lc "cygcheck -dc cygwin"'
- '%PYTHON% --version'
- '%PYTHON% -c "import sys; print(''Python architecture: {0}''.format(''x64'' if sys.maxsize > 2**32 else ''x86''))"'
- '%PYTHON% -c "import sys; print(''Python platform: {0}''.format(sys.platform));"'
- 'if "2.6" == "%PYTHON_VERSION%" appveyor DownloadFile https://raw.githubusercontent.com/bewest/argparse/master/argparse.py -FileName %PYTHON_DIR%/Lib/site-packages/argparse.py'
build_script:
- '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\"; make PYTHON=\"$PYTHON\""'
test_script:
- '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\"; make test PYTHON=\"$PYTHON\""'
- '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\"; make install"'
- '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\"; make installtest PYTHON=\"$PYTHON\""'
- ps: 'cp $env:CYG_ROOT/home/$env:USERNAME/.cyg-apt -destination $env:HOMEPATH'
- '%PYTHON% %CYG_ROOT%/bin/cyg-apt update -qX'
- '%PYTHON% %CYG_ROOT%/bin/cyg-apt ball cygwin> ball~'
- ps: 'Get-Content ball~ | set path; cmd /c $env:CYG_ROOT/bin/cygpath -w $path> ball~'
- ps: 'Get-Content ball~'
- ps: 'if (-not(Get-Content ball~ | Test-Path)) { Exit 1 }'
- 'del ball~'
# test install on long cwd
- 'for /L %%X in (0, 1, 45) do (mkdir %%X_d) & (cd %%X_d)'
- 'cd'
- '%PYTHON% %CYG_ROOT%/bin/cyg-apt -q install ping'
- 'cd "%APPVEYOR_BUILD_FOLDER%"'