forked from landlab/landlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (75 loc) · 2.35 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
env:
matrix:
- TRAVIS_PYTHON_VERSION="2.7" BUILD_DOCS=1 COVERALLS=1
- TRAVIS_PYTHON_VERSION="3.5" BUILD_DOCS=0 COVERALLS=0
- TRAVIS_PYTHON_VERSION="3.6" BUILD_DOCS=0 COVERALLS=0
global:
- CONDA_PREFIX=$HOME/miniconda
- MINICONDA_URL_BASE="https://repo.continuum.io/miniconda/Miniconda3-latest"
- secure: wuv2O1M29pkfAjPbOK1MetIf3teDrG4VTepDOps2YFLMzcoJBlJeTqEneVcHb/q2dz5SefjxQQrbLjgZNOURiS1IT2z24srNDPbp8OAsv9nsqAGZO40eWecCRa+u+P+Wh0pZ8urz/ptTir0qFIQ/yz5hoEPx4ScktHkn23V+/fM=
os:
- linux
- osx
sudo: false
filter_secrets: 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, $TRAVIS_TAG"
- |
if [[ "$TRAVIS_TAG" == v* ]]; then
export BUILD_STR=""
else
export BUILD_STR="dev"
fi
- |
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 -q conda-build=3.0 anaconda-client coverage sphinx
- conda install -q numpy=1.11
- pip install coveralls
- conda info -a && conda list
script:
- conda build -q .conda-recipe --old-build-string
- |
if [[ "$BUILD_DOCS" == "1" ]]; then
conda install -q landlab --use-local
(cd docs && make html 2> /dev/null)
fi
# - bash .ci/travis/run_travis_test.sh
virtualenv:
system_site_packages: false
after_success:
- |
if [[ "$TRAVIS_TAG" == v* ]]; then
bash .ci/travis/deploy_to_pypi.sh
bash .ci/travis/deploy_to_anaconda.sh
fi
- if [[ "$COVERALLS" == "1" ]]; then coveralls; fi
deploy:
provider: pypi
user: mcflugen
password:
secure: V15DceMv4DUmjgxToaxrP3KaQxsLbfrTkB1s6D8YNQZvYJiVvNlBpC1nF8yWbOt3IWJQSGjaQEnObd2ZhHe2Kq/H+QsEFyBKlYF7SNp35FyS5zLuf2qhnNhmzhqkspwBpiGe88c1PQPFzfqdIUQXp7ZAv6L8YRvNy2sbzvgxh6I=
on:
tags: true
branch: release
repo: landlab/landlab
distributions: sdist bdist_wheel
notifications:
slack:
secure: gRKbqjPgp0ZcFtecHOwjLAFbzzBr2zyFrxk7OAS/cea/9U8bLQNA0jZs3ZHtAgR53gdnFlx/GI10d/KD9XMKU55gQkO4FSvfYMK7Xzs2tfnEa5flTqQKRfjB1oJ2fmb81yshUe+xKsXBoedP7SPYv2mutMOY8srKwUcuE0yGmAw=