forked from biolab/orange3-text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (53 loc) · 1.68 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
language: python
sudo: false # use container-based infrastructure
matrix:
include:
- python: '3.4'
- &docs
env: BUILD_DOCS=true
python: '3.5'
install:
- source $TRAVIS_BUILD_DIR/.travis/install_miniconda.sh
- source $TRAVIS_BUILD_DIR/.travis/create_conda_env.sh
- python setup.py develop
script: source $TRAVIS_BUILD_DIR/.travis/build_doc.sh
- &pyqt5
python: '3.5'
env: PYQT5=true
dist: trusty
addons: { apt: { packages: [] } }
addons:
apt:
packages:
- gfortran
- libblas-dev
- liblapack-dev
- libqt4-dev
cache:
apt: true # does not work for public repos
directories:
- $HOME/.cache/pip
- $HOME/.ccache
- $HOME/nltk_data
- $TRAVIS_BUILD_DIR/pyqt
before_cache: # prevent logs from caching
- rm -f $HOME/.cache/pip/log/debug.log
before_install:
- source $TRAVIS_BUILD_DIR/.travis/util.sh
- pip install -U setuptools pip wheel
- pip install codecov
# Gensim (2.2.0) requires numpy>=1.11.3 but cannot update it itself?
- pip install -U numpy
- mkdir -p /home/travis/.local/share/Orange # create orange app dir
install:
- travis_wait pip install -r requirements.txt
- source $TRAVIS_BUILD_DIR/.travis/install_pyqt.sh
- python setup.py develop # assure version.py is present; required for imports
before_script: # required for widget tests
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- coverage run setup.py test
after_success:
- codecov