-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cirrus.yml
95 lines (70 loc) · 1.85 KB
/
.cirrus.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
setup_macos: &SETUP_MACOS
setup_script: |
curl -L -o csound6.18.dmg https://github.com/csound/csound/releases/download/6.18.1/Csound-MacOS-universal-6.18.1.dmg
brew install p7zip
brew install lilypond
7z x csound6.18.dmg
sudo installer -pkg Csound-universal-6.18.1/csound-MacOS-universal-6.18.1.pkg -target /
csound --version
brew install python@$PYVERSION
ls -l
python$PYVERSION --version
python$PYVERSION -m venv .venv
source .venv/bin/activate
python --version
if [[ "$METHOD" == "pip" ]]; then
python -m pip install maelzel
else
python -m pip install .
fi
perform_tests: &PERFORM_TESTS
main_test_script: |
set -x
python3 -m venv .venv
source .venv/bin/activate
python --version
mkdir -p artifacts
cd test
python test-rec.py -o "test-rec-macos-$PYVERSION-$METHOD.wav"
python test-dependencies.py
python test-notation.py -o "test-notation-macos-$PYVERSION-$METHOD.pdf"
ls -l
cp *.wav ../artifacts
cp *.pdf ../artifacts
cd ..
ls -l
ls -l artifacts/*
test_artifacts:
path: artifacts/*
test_git_309_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
environment:
PYVERSION: 3.9
METHOD: git
<<: *SETUP_MACOS
<<: *PERFORM_TESTS
test_git_311_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
environment:
METHOD: git
PYVERSION: 3.11
<<: *SETUP_MACOS
<<: *PERFORM_TESTS
test_pip_309_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
environment:
METHOD: pip
PYVERSION: 3.9
<<: *SETUP_MACOS
<<: *PERFORM_TESTS
test_pip_311_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
environment:
METHOD: pip
PYVERSION: 3.11
<<: *SETUP_MACOS
<<: *PERFORM_TESTS