-
Notifications
You must be signed in to change notification settings - Fork 12
/
appveyor.yml
74 lines (58 loc) · 2.73 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
environment:
SDL_VIDEODRIVER: dummy
# Insert your device's public SSH key here to access the Mac build image.
APPVEYOR_SSH_KEY: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9Rkdcjvu0MQOMOqlpa5J757pso3iPzMOt6WK3WgJW0kZl/6l/UZfjN9fgJ6PXhtSQkXgyvOrhuyMVdIZIstdbZKnpC6KV274gof44653ildsK3wPSpuF2v9lmPPvfQWyHCfjb19T06p4Rh5idUmZqPXtMFNWL2vSR4IGBE90JlaNOdXDU07KPVkjbb5vsQLh/vl47N2LjU4vDCqHscQ+wVJuExE63vVuv2T3SDYJNpjAuvLZStdIjOjTyRaJHq2uazfajaKK1Ss3IUgvWnfFqg7WD9zASC9VffxZd9mvP1PtAODIPENdZWNFODsdIlSHTwAdO3DhWbwaDS+nfDhgB [email protected]
matrix:
- job_name: Windows Tests
appveyor_build_worker_image: Visual Studio 2019
- job_name: macOS Tests
appveyor_build_worker_image: macos-sonoma
matrix:
fast_finish: false
build: off
for:
-
matrix:
only:
- job_name: Windows Tests
install:
- C:\Python311\python.exe -m pip install tox twine build
before_test:
- C:\Python311\python.exe build/build.py
test_script:
# We have to skip py310-zip because its version of pycairo has a Windows-specific bug.
- set "TOX_SKIP_ENV=py310-zip" && C:\Python311\python.exe -m tox --parallel 2
# See more info on RDP here:
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
# The password for the RDP user is listed here:
# https://ci.appveyor.com/project/austin-schick/cpython-cmu-graphics-0l7rb/settings/environment
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
-
matrix:
only:
- job_name: macOS Tests
install:
- export HOMEBREW_NO_AUTO_UPDATE=1
- export HOMEBREW_NO_INSTALL_CLEANUP=1
# Force install xorgproto, which is a dependency of cairo but can't be linked by
# homebrew because of a conflicting file.
- brew install -f --overwrite xorgproto
- brew install cairo pkg-config
- export PYBIN=~/venv3.11/bin/python
- $PYBIN -m pip install -U pip
- $PYBIN -m pip install tox twine build
# Put /usr/local/bin at the front of PATH so that homebrew's pkg-config will
# be run by pip. On 27 Aug 2021, with
# the default PATH value, `which pkg-config` returned
# /Library/Frameworks/Mono.framework/Home/bin/pkg-config
- export PATH=/usr/local/bin:$PATH
before_test:
- export PATH=$PATH:~/venv3.8/bin/:~/venv3.9/bin/:~/venv3.10/bin/:~/venv3.11/bin/
- export ARCHFLAGS="-arch x86_64"
- $PYBIN build/build.py
test_script:
- $PYBIN -m tox --parallel 2
# on_finish:
# - export APPVEYOR_SSH_BLOCK=true
# - curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -