/
.travis.yml
66 lines (52 loc) · 3.26 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
# 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
env:
global:
- DESTINATION_CONDA_CHANNEL="openastronomy"
- TARGET_ARCH="x64"
- CONDA_INSTALL_LOCN="${HOME}/miniconda"
# Defines BINSTAR_TOKEN for your binstar channel
- secure: "ByP5bQWpI4weINGAblXqqeVbU6/j5U4lnkByqNlsLgvt4nLRJEmaCc0O18nzzqn0Rfc1CCLVeTNlb1oZeS2aVtPzwjyCoaoQRROaFca4geEAm7nln1U5uaPjVqRSJWOamUQ1d0tUwbSaTeUdmUpmXzg/sFvH/VIie7UpdYJSML8k2jZLbdldizw2o2SSh7CTXB0IBb80hrbKyzMEdw3zWCtEeHA6t/k2qodAHxBDKEkPw3J/MOcc3VSwCYkISjKkNdhUcyEfo37BTiV5WyaJcWp4c4cdhy4wqGXpjppubCl3FuvlAAFDknY0v6D2I2kdE6j6SlFME/EFTwqkLYouPkdScTR/BUru7AMpjBPnhD8ZDlwXfKvR2Rx0FaKKFx+fhP2SCCsLUxlaj7naP8v7ERmrYwSI5pDJq62rgXT2NDWO4qA07nkncOVZqaPVoWZopTfWTf84lv4dnkgdwSzDvstkcL/BzOcLavlRUgYqLaReFdfoeoPLhG9i6QGrU9QH/yyV+mzF5c57IyqKTfJd3Mz5tO75e3qxuUpqBFeO5Rtxp+4cJdPM9V4ZMwDphmoQkPQHDLdR+W2vXJBU6wyn3jOf1kGI75F4UKPRR+CEFjuzRlPGtbiH36pvFOnT0XHMKy6XbPgc9kwBoe1ii1sl9nAQ0x1dSkm9/nThLUtFeR4="
# The python build restriction MUST be set at the moment, though it
# can have any value. The setting below avoids known-bad builds on
# python 2.6 and 3.3 for some packages.
- PYTHON_BUILD_RESTRICTIONS="2.7*|>=3.4"
# This apparently needs to be set even if it is not used...
- CONDA_NPY=1.11
# Matrix is fully specified (for now) by os versions
install:
# Install and set up miniconda.
- if [ $TRAVIS_OS_NAME == "linux" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; fi
- if [ $TRAVIS_OS_NAME == "osx" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- bash miniconda.sh -b -p $CONDA_INSTALL_LOCN
- export PATH=${CONDA_INSTALL_LOCN}/bin:$PATH
- conda config --set always_yes true
- conda update --quiet conda
# Install a couple of dependencies we need for sure.
- conda install --quiet --yes astropy anaconda-client jinja2 cython pycrypto
- conda config --add channels openastronomy
- conda config --add channels conda-forge
# Install obvious-ci.
- conda install -c conda-forge conda-build-all
# Finally, install extruder
- conda install -c astropy extruder
# Install custom version of conda-build for now (need to be able to pass
# options to setup.py)
- conda remove --force conda-build
- conda install --force openssl=1.0.2d
- conda install -c astropy-ci-extras --override-channels conda-build=1.18.1
script:
# Get ready to build.
- extrude_recipes requirements.yml
# I really need to monkey-patch conda skeleton or something. This is
# stupid. Remove my patched version of conda-build and replace it with
# the latest known good version. It contains a fix for an issue in which
# Windows is unwilling to empty the trash, causing a problem.
- conda remove --force conda-build
- conda install conda-build=1.20.2
# Packages are uploaded as they are built.
- if [[ -d recipes ]]; then conda build-all --inspect-channels="$DESTINATION_CONDA_CHANNEL" --upload-channels="$DESTINATION_CONDA_CHANNEL" --matrix-condition="python $PYTHON_BUILD_RESTRICTIONS" recipes; fi