-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.yml
97 lines (79 loc) · 3.75 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
environment:
matrix:
- PYTHON: "C:\\Python34"
PYTHON_VERSION: "3.4.4"
PYTHON_ARCH: "32"
platform: x86
configuration: Release
init:
- cmd: ver
- cmd: ECHO Processor architecture - %PROCESSOR_ARCHITECTURE%
- cmd: wmic OS get OSArchitecture
# Utilise pre-installed MinGw for make
- ps: $env:PATH = 'C:\MinGW\msys\1.0\bin;C:\MinGW\mingw32\bin;C:\MinGW\bin;' + $env:PATH
# As AppVeyor has multiple python install, check which one uses by default
- cmd: ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
- cmd: python --version
- cmd: python -c "import struct; print(struct.calcsize('P') * 8)"
- cmd: python -c "import sys; print(sys.executable)"
# Set the relevant Python and pip location to the path
- cmd: set PATH=%PYTHON%;%PYTHON%\scripts;%PATH%
- cmd: ECHO Path - %PATH%
# Verify the new default python
- cmd: python --version
- cmd: python -c "import struct; print(struct.calcsize('P') * 8)"
- cmd: python -c "import sys; print(sys.executable)"
- cmd: pip --version
# Check out installed python packages
- cmd: pip freeze
install:
# Fix for PyQt not being installed in correct directory: https://github.com/appveyor/ci/issues/363
- cmd: REG ADD HKCU\Software\Python\PythonCore\3.4\InstallPath /f /ve /t REG_SZ /d C:\Python34
# Download PyQt5 with 10 min time out, rename to pyqt5_installer.exe, and install
- ps: Start-FileDownload 'http://downloads.sourceforge.net/project/pyqt/PyQt5/PyQt-5.5.1/PyQt5-5.5.1-gpl-Py3.4-Qt5.5.1-x32.exe' -FileName pyqt5_installer.exe -Timeout 600000
- cmd: pyqt5_installer.exe /S
- cmd: tree C:\python34\lib\site-packages\PyQt5 /F /A
- cmd: tree C:\python34\lib\site-packages\PyQt5 /A
# Install python dependencies, can't use requirements.txt as PyQt needs 3.5+
#- cmd: pip install pyinstaller==3.3
#- cmd: pip install git+git://github.com/pyinstaller/pyinstaller.git@4f4b6c83f36f19e521ad6d32e8bbb70cef7b806a
- cmd: pip install git+git://github.com/shadchin/pyinstaller@59a233013cf6cdc46a67f0d98a995ca65ba7613a
# zmq is an ipython dependency, older version needed due to pyinstaller incompatibility
# https://github.com/pyinstaller/pyinstaller/issues/2147#issuecomment-274367270
- cmd: pip install pyzmq==15.3.0
- cmd: pip install qtconsole
- cmd: pip install matplotlib
- cmd: pip install setuptools
# Check installed packages
- cmd: pip freeze
- cmd: python -c "import PyQt5"
- cmd: python -c "import PyQt5.Qsci"
# Build test code using PyInstaller
- cmd: pyinstaller package\pyqt5_test.spec
- cmd: pyinstaller package\qtconsole_test.spec
# Rename dist folder and executable with timestamp
- ps: Rename-Item -path .\dist upload
- cmd: dir upload
- ps: Rename-Item .\upload\pyqt5_test.exe pyqt5_test$(get-date -f yyyy-MM-dd_HH_mm)_$($env:APPVEYOR_REPO_BRANCH)_$($env:APPVEYOR_REPO_COMMIT.subString(0,7)).exe
- ps: Rename-Item .\upload\qtconsole_test.exe qtconsole_test$(get-date -f yyyy-MM-dd_HH_mm)_$($env:APPVEYOR_REPO_BRANCH)_$($env:APPVEYOR_REPO_COMMIT.subString(0,7)).exe
# Not a project with an msbuild file, build done at install.
build: None
# Makefiles support provided by MinGW, which does POSIX translations, so run tests natively as well
#test_script: None
# Push artifacts to s3 bucket and list all
before_deploy:
- ps: Get-ChildItem .\upload\*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName mu-s3-deployment }
- ps: foreach($artifactName in $artifacts.keys) { $artifacts[$artifactName] }
# Deploy build to Amazon S3 bucket
deploy:
name: mu-s3-deployment
provider: S3
access_key_id: AKIAJYJV7NN6HVHCX5NQ
secret_access_key:
secure: PlLCQKTcf9IzBXpEnXUxbJifb0usS7qcghnM0VxBTX0IL3C975JPidrYjP39ge7P
bucket: mu-builds
region: eu-west-2
set_public: true
folder: tests/pyinstaller
on:
branch: [master, new_test]