forked from legacysurvey/legacypipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
82 lines (68 loc) · 2.33 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
81
82
# Travis-CI.org build script
# container-based infrastructure
sudo: false
# need APT packages to get white-listed first;
#sudo: required
# install:
# - sudo apt-get update -qq
# - sudo apt-get install -y libnetpbm10 libnetpbm10-dev wcslib-dev libcfitsio3 libcfitsio3-dev python-numpy swig gsl-bin libgsl0-dev python-sphinx sphinx-common python-matplotlib python-scipy python-mock
# - sudo pip install numpydoc
# # python-numpydoc -- not available until Ubuntu 14.04 trusty
language: c
compiler:
- gcc
# - clang
# - pkg-config --exists gsl
# - pkg-config --modversion gsl
# - export SYSTEM_GSL=yes
# - ls /usr/include/wcslib*
# - rm -Rf $HOME/astrometry.net
# - rm -Rf $HOME/tractor-git
# - rm -Rf $HOME/fitsio-git
before_script:
- export WCSLIB_INC="-I/usr/include/wcslib-4.8.3"
- export WCSLIB_LIB="-lwcs"
- if [ ! -d "$HOME/astrometry.net" ]; then (cd $HOME; git clone https://github.com/dstndstn/astrometry.net.git); fi
- (cd $HOME/astrometry.net && git pull && make && make py)
- if [ ! -d "$HOME/tractor-git" ]; then (cd $HOME; git clone https://github.com/dstndstn/tractor.git tractor-git); fi
- (cd $HOME/tractor-git && git pull && make)
- if [ ! -d "$HOME/fitsio-git" ]; then (cd $HOME; git clone https://github.com/esheldon/fitsio.git fitsio-git); fi
- (cd $HOME/fitsio-git && git pull && python setup.py install --home $HOME/fitsio)
- ln -s $HOME/astrometry.net astrometry
- ln -s $HOME/fitsio/lib/python/fitsio .
- ln -s $HOME/tractor-git/tractor .
- ln -s $HOME/tractor-git/wise .
- pip install numpydoc -t $HOME/numpydoc
# - pwd
# - ls
# - echo $HOME
# - ls $HOME
# - echo "$PYTHONPATH"
# - ls -l
# - python -c "import sys; print '\n'.join(sys.path)"
# - python -c "import tractor; print tractor.__file__"
script:
- export PYTHONPATH=${PYTHONPATH}:$(pwd)/py:$(pwd):$HOME/numpydoc
- (cd doc && make)
addons:
apt:
packages:
- libnetpbm10
- libnetpbm10-dev
- wcslib-dev
- libcfitsio3
- libcfitsio3-dev
- python-numpy
- swig
- gsl-bin
- python-sphinx
- python-mock
# python-numpydoc is only available in 'trusty' and later.
# - python-numpydoc
# not whitelisted... needed?
# - libgsl10-dev
cache:
directories:
- $HOME/astrometry.net
- $HOME/tractor-git
- $HOME/fitsio-git