-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
56 lines (46 loc) · 1.18 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
sudo: required
language: python
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
cache:
- pip
- directories:
- $TRAVIS_BUILD_DIR/install-images
python:
- "3.4"
- "3.5"
- "3.6"
notifications:
email: false
before_install:
- mkdir -p $TRAVIS_BUILD_DIR/install-images
- cd install-images
- wget https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.2/sip-4.19.2.tar.gz/download
- tar -xzf download
- rm download
- wget https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12/PyQt4_gpl_x11-4.12.tar.gz/download
- tar -xzf download
- rm download
- cd ..
install:
- cd install-images
- cd sip-4.19.2
- python configure.py
- make
- sudo make install
- cd ..
- cd PyQt4_gpl_x11-4.12
- python configure.py --confirm-license
- make
- sudo make install
- cd $TRAVIS_BUILD_DIR
- pip install -r requirements.txt
- pip install .
script:
- nosetests ./tests/unit --with-coverage # Run unit tests
# This test tests the CSV writer. It should be safe to run on travis
- nosetests ./tests/integration/test_resources/test_csv_file.py --with-coverage
after_success:
- coveralls