-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
51 lines (44 loc) · 1.32 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
language: generic
os:
- linux
- osx
env:
matrix:
- TRAVIS_PYTHON_VERSION="3.*"
global:
- MINICONDA_URL_BASE=" https://repo.anaconda.com/miniconda/Miniconda3-latest"
- secure: gsF0tK0qZ1jFk/fjBdwYDMmAmedXFxd0jtFlroEU2vpozsR+a9VKtTCBMOfbP9sLPIDNpoKCbYdfGw91rH4+27fen1o5AIvomTeLcyGbsMxmfDEr0o/WCcx144EWZHi/x5D1QTr0ph3c0QOG8RfJCaWjjKc7cR3MAWVGEjko8og=
before_install:
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
OS="MacOSX-x86_64"
brew remove --force $(brew list)
brew cleanup -s
rm -rf $(brew --cache)
else
OS="Linux-x86_64"
fi
- curl $MINICONDA_URL_BASE-$OS.sh > $HOME/miniconda.sh
- bash $HOME/miniconda.sh -b -p $HOME/conda
- export PATH="$HOME/conda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda create -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
- conda install --file requirements.txt -c conda-forge
install:
- python setup.py install
before_script:
- |
if [[ $TRAVIS_OS_NAME != "osx" ]]; then
conda install -c conda-forge -c csdms-stack dakota
dakota --version
fi
- conda install -c conda-forge coveralls hydrotrend
script:
- nosetests --with-doctest --with-coverage --cover-package=dakotathon
after_success:
- |
if [[ $TRAVIS_OS_NAME != "osx" ]]; then
coveralls
fi