-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
49 lines (49 loc) · 1.95 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
language: generic
os:
- linux
- osx
env:
matrix:
- CONDA_ENV=3.7
- CONDA_ENV=3.6
sudo: false
jobs:
include:
- stage: deploy
if: tag =~ v.*$
script: skip
os: linux
deploy:
on:
all_branches: true
provider: pypi
user: mcflugen
password:
secure: LG2bKxohg/kEOxLzFtAhCGMo8US9nIWBOXSGiCDR1zXA+JGv6QsrBy6xKKaNTF9Nb2fOkWJQQZfQNCz+V6P3f3MrqfLNRayfVjt+SmMhPIDfNeeMn1ZPDCcif+ugRqINyJk2c+dbwgqluRteqDMeoKW1PKrLzvpMWBn3V8+z9FQJ6PvlkyynoZAE1RCY/1YGjpo50xhPd5g0ucgeLbGnrvvxtZDvu/BmE/YJ3RAYFU5uK3BQLOBStWd35zi3gou4sf321c9cMLdwLVqs+fTeoElbsLADptGKYrVKwAeDgp22bGeBgpLaps/w0dcwpY2Cgnj/1fT3qx0kwU30Yu5V9BCSjdpvxjDYjm+4pKwXN+inbV68XqXcMxQ1s4B7RRkikdsJod03ruFylL+MvoVR7mfqTEd5d5TT83sgtKv7qX/1pUxk2Y+VtgItMqjhZz6PK0nB4APbLfgy+OmCwPdGaD2d0flL2t8T7XEKVGsu2sLgYOPaWzoPuBEsujDh3s6VeNtti8BiWflezEPj7SNCsqCfFZN6RnNHv6hoZEVQ79TsAdrjyPJTCZtXqLL9Yfflu5ZNojF8Mf8krp1QioASGgnNYTkB8Xsn6S9tV5vHf7lGNWbGlIxlWH5XLqkmBITY7UoGUOYaI7fhk9n7sxZ2tsVGKdH66fpqW9f/oSrdwp8=
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
curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > $HOME/miniconda.sh
else
curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > $HOME/miniconda.sh
fi
- bash $HOME/miniconda.sh -b -p $HOME/anaconda
- export PATH="$HOME/anaconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda create -n test_env python=$CONDA_ENV
- source activate test_env
install:
- pip install bmi-tester model_metadata standard_names pytest
- pip install . -r requirements.txt
script:
- python -c 'import pymt_rafem'
- |
config_file=$(mmd-stage pymt_rafem/data/Rafem . > MANIFEST && mmd-query pymt_rafem/data/Rafem --var=run.config_file.path)
bmi-test pymt_rafem.bmi:Rafem --config-file=$config_file --manifest=MANIFEST --root-dir=. -v