-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.appveyor.yml
92 lines (73 loc) · 3.25 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
# modified from mu's config file https://github.com/mu-editor/mu/blob/master/.appveyor.yml
# only_commits:
# message: /\[build\]/
# skip_tags: true
environment:
matrix:
- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6.4"
PYTHON_ARCH: "64"
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 OpenStereo dependencies
- cmd: pip install -r requires.txt
# Check installed packages
- cmd: pip freeze
- cmd: python -c "import PyQt5"
# Build os using pynsist, rename dist folder and executable with timestamp
# 64bit
- cmd: pynsist os_installer64.cfg
- ps: Rename-Item -path .\build upload64
- cmd: dir upload64\nsis
- ps: Rename-Item .\upload64\nsis\OpenStereo_0.9.exe OpenStereo_$(get-date -f yyyy-MM-dd_HH_mm)_$($env:APPVEYOR_REPO_BRANCH)_$($env:APPVEYOR_REPO_COMMIT.subString(0,7))_64bit.exe
# Build os using pynsist, rename dist folder and executable with timestamp
# 32bit
- cmd: pynsist os_installer32.cfg
- ps: Rename-Item -path .\build upload32
- cmd: dir upload32\nsis
- ps: Rename-Item .\upload32\nsis\OpenStereo_0.9.exe OpenStereo_$(get-date -f yyyy-MM-dd_HH_mm)_$($env:APPVEYOR_REPO_BRANCH)_$($env:APPVEYOR_REPO_COMMIT.subString(0,7))_32bit.exe
# Build portable os using pyinstaller, rename dist folder and executable with timestamp
# 32bit
- cmd: pip install pyinstaller
- cmd: pyinstaller -F -w -i .\ui_files\icons\openstereo.ico os_gui.py
- ps: Rename-Item -path .\dist upload32p
- cmd: dir upload32p
- ps: Rename-Item .\upload32p\os_gui.exe OpenStereo_Portable_$(get-date -f yyyy-MM-dd_HH_mm)_32bit.exe
# Not a project with an msbuild file, build done at install.
build: None
before_deploy:
- ps: Get-ChildItem .\upload64\nsis\*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName os-github-deployment }
- ps: Get-ChildItem .\upload32\nsis\*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName os-github-deployment }
- ps: Get-ChildItem .\upload32p\*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName os-github-deployment }
- ps: foreach($artifactName in $artifacts.keys) { $artifacts[$artifactName] }
deploy:
release: $(APPVEYOR_REPO_TAG_NAME)
description: 'OpenStereo automatic build'
provider: GitHub
auth_token:
secure: LBCuN9a41G36WT4b7Tab1UbTE8mji69Jup2hxpGDtdH/JarKQxpCrGadlPclRtqi
draft: false
prerelease: false
on:
# branch: master # release from master branch only
APPVEYOR_REPO_TAG: true