forked from py-sdl/py-sdl2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
106 lines (87 loc) · 2.75 KB
/
.travis.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
language: python
env:
global:
- SDL_VIDEODRIVER=dummy
- SDL_AUDIODRIVER=dummy
- SDL_RENDER_DRIVER=software
matrix:
fast_finish:
include:
- os: linux
python: 2.7
sudo: required
env: PYSDL2_DLL_VERSION=2.0.10
- os: linux
python: 3.5
sudo: required
env: PYSDL2_DLL_VERSION=2.0.10
- os: linux
python: 3.6
sudo: required
env: PYSDL2_DLL_VERSION=2.0.10
- os: linux
python: 3.7
sudo: required
env: PYSDL2_DLL_VERSION=2.0.10
- os: linux
python: 3.8
sudo: required
env: PYSDL2_DLL_VERSION=2.0.10
- os: linux
python: pypy
sudo: required
env: PYSDL2_DLL_VERSION=2.0.10
- os: linux
python: pypy3
sudo: required
env: PYSDL2_DLL_VERSION=2.0.10
- name: "Python 3.7 on macOS w/ latest SDL2"
os: osx
language: shell
env: PYSDL2_DLL_VERSION=2.0.10
before_install: export PATH="/usr/local/opt/python/libexec/bin:/usr/local/bin:$PATH"
- name: "Python 2.7 on macOS w/ latest SDL2"
os: osx
language: shell
env: PYSDL2_DLL_VERSION=2.0.10
before_install: brew link python@2
- name: "Python 3.7 on macOS w/ SDL2 2.0.8"
os: osx
language: shell
env: PYSDL2_DLL_VERSION=2.0.8
before_install: export PATH="/usr/local/opt/python/libexec/bin:/usr/local/bin:$PATH"
- name: "Python 3.7 on macOS w/ SDL2 2.0.7"
os: osx
language: shell
env: PYSDL2_DLL_VERSION=2.0.7
before_install: export PATH="/usr/local/opt/python/libexec/bin:/usr/local/bin:$PATH"
- name: "Python 3.7 on macOS w/ latest Homebrew SDL2"
os: osx
language: shell
before_install:
- export PATH="/usr/local/opt/python/libexec/bin:/usr/local/bin:$PATH" # sets Python to 3.x
- brew install sdl2 sdl2_mixer sdl2_ttf sdl2_image sdl2_gfx
allow_failures:
- python: pypy
- python: pypy3
- name: "Python 3.7 on macOS w/ latest Homebrew SDL2"
before_install:
# Install SDL2 build dependencies on Linux (overridden on macOS)
- sudo apt-get -qq update
- sudo apt-get build-dep libsdl2 libsdl2-mixer libsdl2-ttf libsdl2-image libsdl2-gfx
- sudo apt-get install libmpg123-dev libopus-dev pulseaudio
- dbus-launch pulseaudio --start
- export SDL_AUDIODRIVER=pulse # Try using pulseaudio driver for Linux CI
cache:
# Avoids re-compiling SDL2 libraries on Linux every build
directories:
- dlls
- $HOME/.cache/pip # Avoids recompiling numpy every time on PyPy
install:
- python -m pip install --upgrade pip
- if [[ -z "$(ls -A dlls)" ]]; then python .ci/getsdl2.py; fi
- export PYSDL2_DLL_PATH=$(pwd)/dlls
- python -m pip install --upgrade numpy pytest
- python -m pip install .
script:
- python -B -m pytest -vvl -rxXP