forked from DOI-USGS/fort-pymdwizard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (26 loc) · 1008 Bytes
/
.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
language: python
sudo: required
env:
- CONDA="python=2.7"
- CONDA="python=3.5"
before_install:
- wget http://bit.ly/miniconda -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update --yes conda
- conda config --add channels conda-forge --force
- travis_retry conda create --yes -n TEST $CONDA --file requirements.txt
- source activate TEST
- travis_retry conda install --yes pytest
- travis_retry conda install --yes pytest-cov
- travis_retry conda install --yes pytest-qt
- travis_retry conda install --yes pytest-mock
install:
- "pip install coveralls>=1.1"
before_script:
- export DISPLAY=:99.0
- /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
script:
- py.test --cov=pymdwizard tests --cov-report term-missing
after_success:
- coveralls