forked from pysat/pysat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (37 loc) · 797 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: python
matrix:
include:
- python: 2.7
services: xvfb
- python: 3.7
dist: xenial
services: xvfb
cache: pip
addons:
apt:
packages:
- gfortran
- libncurses5-dev
before_install:
- pip install coveralls
- pip install future
- pip install pysatCDF >/dev/null
# command to install dependencies
install:
- source activate test-environment
# set up data directory
- mkdir /home/travis/build/pysatData
# install pysat
- python setup.py install
before_script:
# set up display screen
- export DISPLAY=:99.0
- if [[ $TRAVIS_PYTHON_VERSION < "3.7" ]]; then
sh -e /etc/init.d/xvfb start;
sleep 3;
fi
# command to run tests
script:
- nosetests -vs --with-coverage --cover-package=pysat
after_success:
- coveralls