-
Notifications
You must be signed in to change notification settings - Fork 58
/
.travis.yml
63 lines (52 loc) · 2.29 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
language: c
os: linux
arch: ppc64le
# use the containers for a faster build
sudo: false
env:
- PYTHON_VERSION=3.7 NUMPY_VERSION=1.16
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
if [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]]; then
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-ppc64le.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- conda update --yes conda
- wget https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-3.49.tar.gz
- tar -xzvf cfitsio-3.49.tar.gz
- (cd cfitsio-3.49; ./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
- mkdir -p $FITSIO_INSTALL_DIR/lib/python$PYTHON_VERSION/site-packages
- 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
- mkdir -p $FITSIO_INSTALL_DIR/lib/python$PYTHON_VERSION/site-packages
- 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