forked from spacetelescope/hstcal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (35 loc) · 1.2 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
language: c
sudo: false
env:
global:
# Set defaults to avoid repeating in most cases
- ASTROCONDA=http://ssb.stsci.edu/astroconda
- CONDA_DEPS="cfitsio curl gcc pkg-config"
- EXE_PREFIX="/tmp/miniconda3"
- PYTHON_VERSION=3.6
- WAF_ARGS_CONFIGURE="-v"
- WAF_ARGS_BUILD="-v"
- WAF_ARGS_INSTALL="-v"
matrix:
fast_finish: true
include:
- os: osx
compiler: clang
env:
- CC="clang"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CONDA_INSTALLER=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CONDA_INSTALLER=https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh; fi
- wget $CONDA_INSTALLER
- bash Miniconda3-latest-*.sh -b -p $EXE_PREFIX
- export PATH=$EXE_PREFIX/bin:$PATH
- conda create -q --yes -n test python=$PYTHON_VERSION
- source activate test
install:
- conda install --yes -c $ASTROCONDA $CONDA_DEPS
- ./waf configure --prefix=$CONDA_PREFIX $WAF_ARGS_CONFIGURE
- ./waf build $WAF_ARGS_BUILD
- ./waf install $WAF_ARGS_INSTALL
script:
# Without this dead call, "language: c" runs its own WAF-unaware script
- python --version