-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
49 lines (44 loc) · 1.38 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
sudo: false
language: cpp
matrix:
include:
- os: linux
env: CONDA_PY=3.5
- os: linux
env: CONDA_PY=3.6
- os: osx
env: CONDA_PY=3.5
- os: osx
env: CONDA_PY=3.6
install:
# Set the anaconda environment
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$CONDA_PY" == "2.7" ]]; then
curl https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -o miniconda.sh;
else
curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o miniconda.sh;
fi
else
if [[ "$CONDA_PY" == "2.7" ]]; then
curl https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels defaults
- conda config --add channels conda-forge
- conda update -q --all
- conda install conda-build anaconda-client
# build
- conda build --no-test conda-recipe
script:
- echo "No test scripts to be run!"
deploy:
provider: script
script: find $HOME/miniconda/conda-bld/${TRAVIS_OS_NAME}-64 -name "*.tar.bz2" -exec anaconda -t $CONDA_TOKEN upload {} \;
on:
tags: true