forked from biolab/orange3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (45 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
language: python
sudo: false
dist: trusty
python:
- '3.4'
- '3.5'
- 'nightly'
matrix:
allow_failures:
- python: nightly
cache:
apt: true
directories:
- $TRAVIS_BUILD_DIR/postgres
- $TRAVIS_BUILD_DIR/pyqt
- $HOME/.cache/pip
- $HOME/.ccache
before_cache:
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- postgresql-server-dev-9.1
- libqt4-dev
- gfortran
before_install:
- set -e # fail on any error
install:
- source $TRAVIS_BUILD_DIR/.travis/install.sh
- source $TRAVIS_BUILD_DIR/.travis/install_postgres.sh
- source $TRAVIS_BUILD_DIR/.travis/install_pyqt.sh
- source $TRAVIS_BUILD_DIR/.travis/build_doc.sh
- pip install codecov
script:
- cd "$ORANGE_DIR"
- python -c "from Orange.tests import *"
- cp "$TRAVIS_BUILD_DIR"/.coveragerc ./ # for covereage and codecov
- PYTHONUNBUFFERED=x coverage run --source=Orange -m unittest -v Orange.tests
after_success:
- codecov
- cd $TRAVIS_BUILD_DIR
- if [ $TRAVIS_REPO_SLUG = biolab/orange3 ] && [ $TRAVIS_PULL_REQUEST = false ]; then
source $TRAVIS_BUILD_DIR/.travis/upload_doc.sh;
fi