-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (52 loc) · 1.53 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
language: minimal
sudo: false # use container based build
notifications:
email: false
matrix:
fast_finish: true
include:
- env:
- CONDA_ENV=3.6
- NCO_VERSION=4.6.9
- env:
- CONDA_ENV=3.6
- NCO_VERSION=latest
- env:
- CONDA_ENV=3.7
- NCO_VERSION=latest
before_install:
# Install miniconda
# -----------------
- export CONDA_BASE=http://repo.continuum.io/miniconda/Miniconda
- wget ${CONDA_BASE}3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
# Create the basic testing environment
# ------------------------------------
- conda config --set always_yes yes --set changeps1 no
- conda config --set show_channel_urls True
- conda config --add create_default_packages pip
- conda update --quiet conda
# Add 3rd party channels
# ------------------------------------
- conda config --add channels conda-forge
# Create our environment
# ------------------------------------
- conda env create --name test_env --quiet --file ci/requirements-$CONDA_ENV.yml
- source activate test_env
- if [ "${NCO_VERSION}" == "latest" ];
then conda install nco;
else conda install nco==${NCO_VERSION};
fi
# Debugging information
# ------------------------------------
- conda info -a
- conda list --export
- which ncks ncdump
# Install pynco
# ------------------------------------
- python setup.py install
# command to run tests
script:
- python -c "from nco import Nco"
- py.test -rxs -s -v