-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
40 lines (40 loc) · 1.79 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
language: generic
sudo: required
os:
- linux
services:
- docker
env:
matrix:
- CONDA_PY=36
global:
secure: IomW/fLrvlZcn23yVsYWewVJ+HfAHrYDvRqF+2SgFsQ5NwLSOAOCrQLJA89lPrYhZpU5qz8cygbzRcDS8CaW5P/etIXijzjP9PJsy57hjTBQLpRGT6l0U6UpTAceKrbBUEYVZfFT3y7VHzS2ToPn+CCLOkkKTueQH3MNQkoT/7y7iKsICt2CCTIBhnk7ucv32z5vtTQUeJEEsE5A3h8bqYA4V8ncbrsSZH7V38s8j4Zt1BGkAwQmEX4QUroV3lzrvFXgkFWsvzJRKMp6OCyVyi0ug8G7ueXUdTYsV3d82pWPyF6ec7yKWhe0yTXnLlBH4f/YpZT6HWjv7RBUwp3iChVFUP/OTXFNW+1OC+Z2EaRXANsNAg2pWxorb6DMrcmf4pxUHMf6AqYpUorHqREDPICGUSLHbc9UNvGuLE/hgYHf+7yMYYVuI+xtpSf9mTolWzin2HXykj1Kt8Nbcg1g93b8gXpJOqYslC5ZBpwpZ6G/op7X1pAh14QD8pLCJ1EUFCCi2+MwOhmVW0m+dcB0SkrFyZfziv/tuUOxONfGGQpO0U51PMtet7P8kMmcmrvTTWYenP9qnR8Kba/VF8O7RFmZMNcNaZxKouRA9Pj7eMIAhD5smJSTKjbQrfex7ovLkrcK77nLgcWxfu7Up6eMr+BpU68qheii7U9erRT2S48=
install:
- |
echo "Installing a fresh version of Miniconda."
MINICONDA_URL="https://repo.continuum.io/miniconda"
MINICONDA_FILE="Miniconda3-latest-$(case $TRAVIS_OS_NAME in (linux) echo Linux;; (osx) echo MacOSX;;esac)-x86_64.sh"
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"
bash $MINICONDA_FILE -b
- |
echo "Configuring conda."
source $HOME/miniconda3/bin/activate root
conda install -y conda-build anaconda-client flake8 conda-verify
script:
- |
flake8 .
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
conda build -c intake -c defaults -c conda-forge ./conda
else
# Workaround for Travis-CI bug #2: https://github.com/travis-ci/travis-ci/issues/7773
conda build -c intake -c defaults -c conda-forge --no-test ./conda
fi
- |
if [ -n "$TRAVIS_TAG" ]; then
# If tagged git version, upload package to main channel
anaconda -t ${ANACONDA_TOKEN} upload -u intake --force `conda build --output ./conda`
fi
notifications:
email: false
on_success: change
on_failure: always