forked from esheldon/fitsio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (64 loc) · 2.61 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
os:
- linux
- osx
language: c
# use the containers for a faster build
sudo: false
# these combos of python and numpy are not supported by
# anaconda:
# python 2.6* numpy 1.11*
# python 3.3* numpy 1.11*
# python 3.5* numpy 1.8*
# Here is a matrix that anaconda supports:
env:
- PYTHON_VERSION=2.6 NUMPY_VERSION=1.8
- PYTHON_VERSION=2.6 NUMPY_VERSION=1.9
- PYTHON_VERSION=2.7 NUMPY_VERSION=1.8
- PYTHON_VERSION=2.7 NUMPY_VERSION=1.9
- PYTHON_VERSION=2.7 NUMPY_VERSION=1.11
- PYTHON_VERSION=3.3 NUMPY_VERSION=1.8
- PYTHON_VERSION=3.3 NUMPY_VERSION=1.9
- PYTHON_VERSION=3.4 NUMPY_VERSION=1.8
- PYTHON_VERSION=3.4 NUMPY_VERSION=1.9
- PYTHON_VERSION=3.4 NUMPY_VERSION=1.11
- PYTHON_VERSION=3.5 NUMPY_VERSION=1.9
- PYTHON_VERSION=3.5 NUMPY_VERSION=1.11
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- conda update --yes conda
- wget http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio3430.tar.gz
- tar -xzvf cfitsio3430.tar.gz
- (cd cfitsio; ./configure --disable-shared --prefix=$HOME/cfitsio-static-install; make install -j 4)
install:
- conda create --yes -n test python=$PYTHON_VERSION
- source activate test
- conda install --yes numpy=$NUMPY_VERSION nose cython
- if [ $PYTHON_VERSION == 2.6 ]; then conda install --yes argparse; fi
script:
- FITSIO_INSTALL_DIR=$HOME/fitsio-temp-install
- export PYTHONPATH=$FITSIO_INSTALL_DIR/lib/python$PYTHON_VERSION/site-packages:$PYTHONPATH
- export INSTALLFLAGS="--prefix=$FITSIO_INSTALL_DIR --single-version-externally-managed --record rec.txt"
- python setup.py install $INSTALLFLAGS
- pushd /tmp
- SKIP_BZIP_TEST=true python -c "import fitsio; fitsio.test.test()"
- popd
- rm -rf $FITSIO_INSTALL_DIR
- python setup.py clean -a
- python setup.py install $INSTALLFLAGS build_ext --use-system-fitsio --system-fitsio-includedir=$HOME/cfitsio-static-install/include --system-fitsio-libdir=$HOME/cfitsio-static-install/lib
- pushd /tmp
- SKIP_BZIP_TEST=true SKIP_HCOMPRESS_U2_TEST=true python -c "import fitsio; fitsio.test.test()"
- popd
- rm -rf $FITSIO_INSTALL_DIR
- python setup.py clean -a
- python setup.py build
- python setup.py clean -a
- python setup.py build_ext
#notifications:
# email: false