forked from mu-editor/mu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
84 lines (69 loc) · 2.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
environment:
matrix:
- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6.4"
PYTHON_ARCH: "32"
platform: x86
configuration: Release
init:
- cmd: ver
- cmd: ECHO Processor architecture - %PROCESSOR_ARCHITECTURE%
- cmd: wmic OS get OSArchitecture
# 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:
# Install Mu Python dependencies
- cmd: pip install -r requirements.txt
# Install helpful pytest plug-in
- cmd: pip install pytest-faulthandler
# Check installed packages
- cmd: pip freeze
- cmd: python -c "import PyQt5"
- cmd: python -c "import PyQt5.Qsci"
- cmd: python -c "import PyQt5.QtChart"
# Build mu using pynsist, rename dist folder and executable with timestamp
# 64bit
- cmd: make win64
- ps: Rename-Item -path .\build upload64
- cmd: dir upload64\nsis
- ps: Rename-Item .\upload64\nsis\mu_1.1.0a1.exe mu_$(get-date -f yyyy-MM-dd_HH_mm)_$($env:APPVEYOR_REPO_BRANCH)_$($env:APPVEYOR_REPO_COMMIT.subString(0,7))_64bit.exe
# 32bit
- cmd: make win32
- ps: Rename-Item -path .\build upload32
- cmd: dir upload32\nsis
- ps: Rename-Item .\upload32\nsis\mu_1.1.0a1.exe mu_$(get-date -f yyyy-MM-dd_HH_mm)_$($env:APPVEYOR_REPO_BRANCH)_$($env:APPVEYOR_REPO_COMMIT.subString(0,7))_32bit.exe
# Not a project with an msbuild file, build done at install.
build: None
test_script:
- cmd: make check
# Push artifacts to s3 bucket and list all
before_deploy:
- ps: Get-ChildItem .\upload64\nsis\*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName mu-s3-deployment }
- ps: Get-ChildItem .\upload32\nsis\*.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: windows
on:
branch: [master]