forked from wxWidgets/Phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci-macos-job.yml
65 lines (56 loc) · 1.69 KB
/
ci-macos-job.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
jobs:
- job: MacOS_CI
timeoutInMinutes: 90
displayName: 'MacOS CI'
pool:
vmImage: 'macOS-10.14'
strategy:
matrix:
Py36:
python_version: '3.6.8'
python_pkg: 'python-3.6.8-macosx10.9.pkg'
python: 'python3.6'
Py37:
python_version: '3.7.3'
python_pkg: 'python-3.7.3-macosx10.9.pkg'
python: 'python3.7'
Py38:
python_version: '3.8.0'
python_pkg: 'python-3.8.0-macosx10.9.pkg'
python: 'python3.8'
Py39:
python_version: '3.9.0'
python_pkg: 'python-3.9.0-macosx10.9.pkg'
python: 'python3.9'
variables: {'PYTHONUNBUFFERED': '1'}
steps:
- checkout: self
submodules: recursive
- script: |
curl -O https://www.python.org/ftp/python/$PYTHON_VERSION/$PYTHON_PKG
sudo installer -pkg $PYTHON_PKG -target /
which $PYTHON
$PYTHON --version
displayName: 'Fetch Python'
- script: |
curl -O https://bootstrap.pypa.io/get-pip.py
$PYTHON get-pip.py
$PYTHON -m pip install -U setuptools wheel
$PYTHON -m pip install -r requirements.txt
displayName: 'Install Python dependencies'
- script: |
#sudo xcode-select -s /Applications/Xcode_9.4.1.app/Contents/Developer
xcode-select --print-path
$PYTHON build.py --jobs=4 build_wx
displayName: 'build wxWidgets'
- script: |
$PYTHON build.py dox etg --nodoc sip
displayName: 'generate code'
- script: |
$PYTHON build.py --jobs=4 build_py
displayName: 'build wxPython'
- script: |
$PYTHON build.py bdist_wheel
$PYTHON build.py install
$PYTHON -c "import wx; print(wx.version());"
displayName: 'build wheel and test install'