-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
114 lines (78 loc) · 2.67 KB
/
azure-pipelines.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
102
103
104
105
106
107
108
109
110
111
112
113
114
variables:
dependencies: voila ipywidgets bqplot ipyvuetify voila-vuetify numpy scipy astropy
jobs:
- job: Linux
pool:
vmImage: Ubuntu 16.04
container: astrofrog/ubuntu-with-python-3:latest
steps:
- script: start-xvfb
displayName: Start XVFB
- script: pip install $(dependencies) --pre
displayName: Installing voila and related dependencies
- script: pip freeze
displayName: List dependencies
- script: pyinstaller voila_demo.spec
displayName: Building application
- script: dist/voila_demo/voila_demo --nonblocking
displayName: Testing application
- task: PublishPipelineArtifact@0
inputs:
artifactName: voila_demo-linux
targetPath: dist/voila_demo
- job: MacOSX
pool:
vmImage: macOS 10.13
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
architecture: 'x64'
- script: pip install git+https://github.com/astrofrog/pyinstaller.git@develop
displayName: Installing pyinstaller
- script: pip install PyQt5 PyQtWebEngine
displayName: Installing app dependencies
- script: pip install $(dependencies) --pre
displayName: Installing voila and related dependencies
- script: pip freeze
displayName: List dependencies
- script: pyinstaller voila_demo.spec
displayName: Building application
- script: python fix_osx.py dist/voila_demo.app
displayName: Fix application
- script: rm -r dist/voila_demo
displayName: Remove unused directory
- script: dist/voila_demo.app/Contents/MacOS/voila_demo --nonblocking
displayName: Testing application
- script: hdiutil create -volname "Voila Demo" -srcfolder dist -ov -format UDZO voila_demo.dmg
displayName: Make DMG
- task: PublishPipelineArtifact@0
inputs:
artifactName: voila_demo-macosx
targetPath: voila_demo.dmg
- job: Windows
pool:
vmImage: vs2017-win2016
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
architecture: 'x64'
- script: pip install git+https://github.com/astrofrog/pyinstaller.git@develop
displayName: Installing pyinstaller
- script: pip install PyQt5 PyQtWebEngine
displayName: Installing app dependencies
- script: pip install $(dependencies) --pre
displayName: Installing voila and related dependencies
- script: pip install pywin32
displayName: Installing pywin32
- script: pip freeze
displayName: List dependencies
- script: pyinstaller voila_demo.spec
displayName: Building application
- script: .\dist\voila_demo\voila_demo --nonblocking
displayName: Testing application
- task: PublishPipelineArtifact@0
inputs:
artifactName: voila_demo-windows
targetPath: dist\voila_demo