forked from inkcut/inkcut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (53 loc) · 1.76 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
matrix:
fast_finish: true
include:
- os: linux
dist: trusty
env:
- PYTHON=2.7
- os: linux
dist: xenial
env:
- PYTHON=3.6
- os: osx
env:
- PYTHON=2.7
- os: osx
env:
- PYTHON=3.7
before_script:
# We need a (fake) display on Travis so I need to start a X server.
- export DISPLAY=:99.0
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render;
fi
# Install cups on linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt update -qq && sudo apt -qq install libcups2-dev; fi
# Install miniconda
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
travis_retry wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
travis_retry wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
# Install conda build and anaconda-client
- conda install anaconda-client conda-build constructor -q
# Install python
- conda install python=$PYTHON pyqt -q
- if [[ "$PYTHON" == "2.7" ]]; then pip install qtconsole; fi
# Install testing utils
- pip install pytest pytest-coverage pytest-qt codecov
script:
- python setup.py develop
- py.test tests --cov inkcut --cov-report xml -v
after_script:
- cat ~/.config/inkcut/logs/*.txt
after_success:
- codecov
# Build install package
- constructor recipe