-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (39 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
language: python
python:
- "2.7"
env:
global:
- CC_TEST_REPORTER_ID=cfa8f3ce25234c367e8da72c62c9ec5a784960664362f494bf458f7d1916e3e6
addons:
apt:
packages:
- libwebkitgtk-dev
- libjpeg-dev
- libtiff-dev
- libgtk2.0-dev
- libsdl1.2-dev
- libgstreamer-plugins-base0.10-dev
- freeglut3
- freeglut3-dev
- libnotify-dev
install:
- sudo apt-get update
- lsb_release -a
- pip install psutil
- pip install coverage
- pip install pytest-cov
- pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-14.04 wxPython
# - sudo pip install --upgrade --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython
before_script: # code coverage tool
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
# - xvfb-run python -m unittest -v tests.testWatchdock
- xvfb-run pytest --cov=watchdock --cov-report xml tests
# - xvfb-run python -m unittest discover -vf tests
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t coverage.py -r $CC_TEST_REPORTER_ID
branches:
only:
- master