forked from danielepantaleone/eddy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (55 loc) · 1.21 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
## Enable sudo
sudo:
required
# Test on Trusty
dist:
trusty
## Cache PIP installs across jobs
cache:
- pip
## Select test language
language:
python
## Select python version
python:
- 3.4
# Jobs environment variables
env:
matrix:
- TEST=actions
- TEST=datatypes
- TEST=diagram
- TEST=export
- TEST=functions
- TEST=palette
- TEST=profiles
- TEST=tools
## Test only master and dev branches
branches:
only:
- master
## Prepare build environment
before_install:
- ./scripts/configure-travis.sh
## Skip install step
install:
true
## Start X Virtual Framebuffer
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 5
## Run automated tests using nose
script:
- nosetests --tests=tests/test_${TEST}.py --verbosity=3 --with-cov --cov eddy --cov-report term-missing --cov-config .coveragerc
# Report tests coverage
after_success:
- coveralls
# Setup notifications
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/aafeec4156a7fb26ef0c
on_success: always # options: [always|never|change] default: always
on_failure: change # options: [always|never|change] default: always
on_start: never # default: never