This repository has been archived by the owner on Dec 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
46 lines (38 loc) · 2.07 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
# The language in this case has no bearing - we are going to be making use of "conda" for a
# python distribution for the scientific python stack.
language: c
os:
# - linux
- osx
sudo: false
env:
global:
# Add the BINSTAR_TOKEN environment variable. This has been generated with "anaconda auth --create --name conda-recipes-scitools-2016 -o SciTools"
# then "travis encrypt BINSTAR_TOKEN=<token_id> --repo SciTools/conda-recipes-scitools"
secure: "gUnBiclSuzSUSyJCVM2acIjry1VoqDlqWCkIDYx4VHJfRn7VXrav+G0cn2nYW7L8ch3/tnLqXLNEYRoBq8tbNOoOnnksqd0zTDNuUD4HkaQ47fNTsSbBVDzgDSiTvj9hjUFM7hQ0ju1BffG/uu43gl1mOaSh+R5/jdJ+iGlF+gg="
addons:
apt:
packages:
# Install makeinfo [sic] - needed for constructing configuration
# files via autoreconf (in particular for udunits)
- texinfo
# Unit testing framework for C (used by libmo_unpack)
- check
before_install:
- brew update && brew install check
install:
# Set the numpy variable. This isn't used, but conda-build complains if we haven't set it already.
- export CONDA_NPY=19
# Set the name of the channel label to upload to.
- export LABEL_NAME=main
# Only run the upload if the binstar token is present.
- export UPLOAD_CHANNELS=$(if [ -z ${BINSTAR_TOKEN+x} ]; then echo ""; else echo "--upload-channels scitools/label/${LABEL_NAME}"; fi)
- curl -L -O https://raw.githubusercontent.com/conda-forge/conda-smithy/master/bootstrap-obvious-ci-and-miniconda.py
- python bootstrap-obvious-ci-and-miniconda.py ~/miniconda x64 3 --without-obvci && source ~/miniconda/bin/activate root
- conda config --add channels scitools
- conda config --set show_channel_urls True
- conda install --yes --quiet -c conda-forge conda-build-all conda-build==2.0.10
- conda install -n root --yes --quiet conda==4.2.13 jinja2 anaconda-client
- conda list
script:
- conda-build-all ./ --inspect-channels scitools/label/${LABEL_NAME} ${UPLOAD_CHANNELS} --matrix-condition "numpy >=1.8,,<=1.10" "python >=2.7,<3|>=3.4,<3.5|>=3.5,<3.6"