forked from MyreMylar/pygame_gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
100 lines (93 loc) · 2.62 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
language: python
os:
- linux
addons:
apt:
packages:
- xclip
- xsel
- xvfb
jobs:
include:
- os: osx
language: generic
env: PYTHON=3.8.0 PYGAME_VERSION=2.0.0.dev10
before_install:
- brew update
- brew install openssl readline
- brew outdated pyenv || brew upgrade pyenv
- brew install pyenv-virtualenv
- pyenv install $PYTHON
- export PYENV_VERSION=$PYTHON
- export PATH="/Users/travis/.pyenv/shims:${PATH}"
- pyenv virtualenv py_venv
- source /Users/travis/.pyenv/versions/py_venv/bin/activate
- python --version
- os: osx
language: generic
env: PYTHON=3.7.5 PYGAME_VERSION=1.9.6
before_install:
- brew update
- brew install openssl readline
- brew outdated pyenv || brew upgrade pyenv
- brew install pyenv-virtualenv
- pyenv install $PYTHON
- export PYENV_VERSION=$PYTHON
- export PATH="/Users/travis/.pyenv/shims:${PATH}"
- pyenv virtualenv py_venv
- source /Users/travis/.pyenv/versions/py_venv/bin/activate
- python --version
- os: windows
language: shell
before_install:
- choco install python3 --params "/InstallDir:C:\\Python"
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
- python --version
env: PYGAME_VERSION=1.9.6
- os: windows
language: shell
before_install:
- choco install python3 --params "/InstallDir:C:\\Python"
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
- python --version
env: PYGAME_VERSION=2.0.0.dev10
- os: linux
python: 3.5
env: PYGAME_VERSION=1.9.6
- os: linux
python: 3.5
env: PYGAME_VERSION=2.0.0.dev10
- os: linux
python: 3.6
env: PYGAME_VERSION=1.9.6
- os: linux
python: 3.6
env: PYGAME_VERSION=2.0.0.dev10
- os: linux
python: 3.7
env: PYGAME_VERSION=1.9.6
- os: linux
python: 3.7
env: PYGAME_VERSION=2.0.0.dev10
# No Travis version of 1.9.6 on Python 3.8 yet
- os: linux
python: 3.8
env: PYGAME_VERSION=2.0.0.dev10
install:
- python -m pip install -U pip
- python -m pip install pytest
- python -m pip install pytest-cov
- python -m pip install codecov
- python -m pip install -q pygame==$PYGAME_VERSION
- python setup.py -q install
env:
global:
- SDL_VIDEODRIVER=dummy
- SDL_AUDIODRIVER=disk
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
then xvfb-run pytest;
else python -m pytest --cov-report=xml --cov=pygame_gui tests/;
fi
after_success:
- codecov