-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
69 lines (63 loc) · 2.16 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
64
65
66
67
68
69
language: cpp # Travis-CI does not currently support Python and Mac OS X
sudo: required
matrix:
include:
- os: linux
dist: xenial
env: PYTHON_VERSION=3.6
- os: linux
dist: trusty
env: PYTHON_VERSION=3.6
- os: linux
dist: xenial
env: PYTHON_VERSION=3.7
- os: osx
env: PYTHON_VERSION=3.6
fast_finish: true
allow_failures:
- os: linux
dist: trusty
env: PYTHON_VERSION=3.6
- os: linux
dist: xenial
env: PYTHON_VERSION=3.7
- os: osx
env: PYTHON_VERSION=3.6
install:
- "export DISPLAY=:99.0"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )&
curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o miniconda.sh;
else
sudo apt-get update;
sudo apt-get install -y xvfb;
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset;
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-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 config --add channels conda-forge
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment python=$PYTHON_VERSION
- source activate test-environment
- pip install PySide2
- conda install numpy matplotlib-base gdal pyproj scipy basemap netCDF4 h5py lxml pillow
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then
conda remove --force PyQt Qt sip;
export LD_LIBRARY_PATH=$HOME/miniconda/envs/test-environment/lib:$LD_LIBRARY_PATH;
fi
- pip install coveralls
- pip install https://github.com/hydroffice/hyo2_abc/archive/master.zip
- pip install .
- rm -f $HOME/miniconda/envs/test-environment/qt.conf
- pip install pytest pytest-cov
- conda list --show-channel-urls
- python data/download_products.py
script:
- py.test --cov=hyo2.openbst
after_success:
- coveralls