forked from stfc/SciBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (29 loc) · 905 Bytes
/
.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
language: python
python:
- "3.6"
- "3.6-dev" # 3.6 development branch
- "3.7-dev" # 3.7 development branch
- "nightly"
matrix:
allow_failures:
- python: "3.6-dev"
- python: "3.7-dev"
- python: "nightly"
fast_finish: true
# Route build to container-based infrastructure
sudo: false
# Cache the dependencies installed by pip
cache: pip
# Avoid pip log from affecting cache
before_cache: rm -fv ~/.cache/pip/log/debug.log
# Install defaults to "pip install -r requirements.txt"
# Commands that prepare things for the test
before_script:
- export PYTHONPATH=$PYTHONPATH:`pwd -P`
# The coveralls module on PyPI (1.1) doesn't report branch coverage to
# Coveralls, but should in the next release (1.2)
script: coverage run --branch --source=src -m unittest2 discover --buffer
after_success: coveralls
# Prevent 'Video not initialized' errors
env:
SDL_VIDEODRIVER: "dummy"