-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
48 lines (39 loc) · 1.44 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
language: python
sudo: false
env:
global:
- BASE_DEPS="ocgis nose mock"
matrix:
- CONDA_PYTHON="python=3.6", OCGIS_DEPS_ADDS=""
- CONDA_PYTHON="python=3.7", OCGIS_DEPS_ADDS="esmpy xarray"
before_install:
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
install:
- travis_retry conda create -q -n test-minimal -c conda-forge $CONDA_PYTHON $BASE_DEPS
- conda activate test-minimal
- conda remove --force ocgis
- python setup.py install
# - travis_retry conda create -n test-full -c conda-forge $CONDA_PYTHON $BASE_DEPS rtree cf_units mpi4py $OCGIS_DEPS_ADDS
# - source activate test-full
# - conda remove ocgis
# - python setup.py install
script:
- conda activate test-minimal
- python -c "from ocgis.test import run_simple; run_simple(verbose=False)"
# - |
# if [[ $CONDA_PYTHON = "python=3.7" ]]; then
# source activate test-full
# python -c "from ocgis.test import run_more; run_more(verbose=False)"
# fi
# - source activate test-full
# - mpirun -n 2 python -c "from ocgis.test import run_mpi_nodata; run_mpi_nodata(verbose=True)"
- ocli chunked-rwg --help
- ocli chunked-smm --help