forked from ChristinaB/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
43 lines (43 loc) · 1.13 KB
/
.travis.yml
File metadata and controls
43 lines (43 loc) · 1.13 KB
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
env:
matrix:
- TRAVIS_PYTHON_VERSION="2.7"
- TRAVIS_PYTHON_VERSION="3.5"
- TRAVIS_PYTHON_VERSION="3.6"
global:
- CONDA_PREFIX=$HOME/miniconda
- MINICONDA_URL_BASE="https://repo.continuum.io/miniconda/Miniconda3-latest"
- MPLCONFIGDIR=$HOME/.config/matplotlib
os:
- linux
- osx
sudo: false
before_install:
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew remove --force $(brew list)
brew cleanup -s
rm -rf $(brew --cache)
fi
install:
- echo "Build on $TRAVIS_OS_NAME for Python $TRAVIS_PYTHON_VERSION"
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
OS="MacOSX-x86_64"
else
OS="Linux-x86_64"
fi
- curl $MINICONDA_URL_BASE-$OS.sh > $HOME/minconda.sh
- bash $HOME/minconda.sh -b -p $CONDA_PREFIX
- export PATH="$CONDA_PREFIX/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda install python=$TRAVIS_PYTHON_VERSION
- conda install scripting -c csdms-stack
- conda install landlab jupyter -c landlab
- conda info -a && conda list
script:
- mkdir -p $MPLCONFIGDIR
- "echo backend: Agg > $MPLCONFIGDIR/matplotlibrc"
- ./run-all-tests.sh
virtualenv:
system_site_packages: false