-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
46 lines (46 loc) · 1.19 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
language: generic
os:
- osx
- linux
env:
matrix:
- PYTHON="3.7"
- PYTHON="3.8"
global:
- CONDA_PREFIX=$HOME/miniconda
sudo: false
before_install:
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew remove --force $(brew list)
brew cleanup -s
rm -rf $(brew --cache)
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
OS="MacOSX-x86_64"
else
OS="Linux-x86_64"
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > $HOME/miniconda.sh
else
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > $HOME/miniconda.sh
fi
- bash $HOME/miniconda.sh -b -p $(pwd)/anaconda
- export PATH="$(pwd)/anaconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda create -n _testing python=$PYTHON
- source activate _testing
- conda info -a && conda list
install:
- conda install -q --file=requirements-build.txt
- conda install -q --file=requirements-library.txt
- pip install -e .
script:
- conda install -q --file=requirements-testing.txt
- python -c 'import pymt_soilgrids'
- bmi-test pymt_soilgrids.bmi:SoilData -vvv