|
70 | 70 | - NO_AT_BRIDGE=1 # Necessary for GTK3 interactive test.
|
71 | 71 | - OPENBLAS_NUM_THREADS=1
|
72 | 72 | - PYTHONFAULTHANDLER=1
|
| 73 | + - XVFB="" |
73 | 74 |
|
74 | 75 | matrix:
|
75 | 76 | include:
|
76 | 77 | - python: 3.7
|
77 | 78 | env:
|
78 | 79 | - PINNEDVERS='-c requirements/testing/minver.txt'
|
79 | 80 | - DELETE_FONT_CACHE=1
|
| 81 | + - python: 3.7 |
| 82 | + arch: arm64 |
| 83 | + env: |
| 84 | + - PINNEDVERS='-c requirements/testing/minver.txt' |
| 85 | + - DELETE_FONT_CACHE=1 |
| 86 | + - PIP_NO_CACHE_DIR=off |
| 87 | + - XVFB=xvfb-run |
80 | 88 | - python: 3.7
|
81 | 89 | env:
|
82 | 90 | - EXTRAREQS='-r requirements/testing/travis_extra.txt'
|
| 91 | + - python: 3.7 |
| 92 | + arch: arm64 |
| 93 | + env: |
| 94 | + - EXTRAREQS='-r requirements/testing/travis_arm64_extra.txt' |
| 95 | + - PIP_NO_CACHE_DIR=off |
| 96 | + - XVFB=xvfb-run |
83 | 97 | - python: 3.8
|
84 | 98 | env:
|
85 | 99 | - EXTRAREQS='-r requirements/testing/travis_extra.txt'
|
| 100 | + - python: 3.8 |
| 101 | + arch: arm64 |
| 102 | + env: |
| 103 | + - EXTRAREQS='-r requirements/testing/travis_arm64_extra.txt' |
| 104 | + - PIP_NO_CACHE_DIR=off |
| 105 | + - XVFB=xvfb-run |
86 | 106 | - python: "nightly"
|
87 | 107 | env:
|
88 | 108 | - PRE=--pre
|
@@ -121,6 +141,10 @@ install:
|
121 | 141 | git describe
|
122 | 142 | # Upgrade pip and setuptools and wheel to get as clean an install as possible.
|
123 | 143 | python -mpip install --upgrade pip setuptools wheel
|
| 144 | + - | |
| 145 | + if [[ "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then |
| 146 | + sudo apt-get install -y xvfb python3-tk imagemagick; |
| 147 | + fi |
124 | 148 | - |
|
125 | 149 | # Install dependencies from PyPI.
|
126 | 150 | python -mpip install --upgrade $PRE -r requirements/testing/travis_all.txt $EXTRAREQS $PINNEDVERS
|
@@ -174,10 +198,10 @@ script:
|
174 | 198 | # Each script we want to run need to go in its own section and the program
|
175 | 199 | # you want to fail travis needs to be the last thing called.
|
176 | 200 | - |
|
177 |
| - # The number of processes is hardcoded (-n2), because using too many |
| 201 | + # The number of processes is hardcoded (-n4), because using too many |
178 | 202 | # causes the Travis VM to run out of memory (since so many copies of
|
179 | 203 | # inkscape and ghostscript are running at the same time).
|
180 |
| - python -mpytest -raR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n2 --log-level=DEBUG |
| 204 | + $XVFB python -mpytest -raR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n4 --log-level=DEBUG |
181 | 205 |
|
182 | 206 | before_cache: |
|
183 | 207 | rm -rf $HOME/.cache/matplotlib/tex.cache
|
|
0 commit comments