forked from dstndstn/astrometry.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (70 loc) · 1.87 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
# Travis-CI.org build script
# use the new containerized infrastructure
sudo: false
#dist: trusty
dist: bionic
# language: c
# compiler:
# - gcc
# - clang
# env:
# - PY=2
# - PY=3
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
env:
- CC=gcc
- CC=clang
# Apparently the wcslib version they have (4.8.3) doesn't use pkg-config
# And netpbm include files are right in /usr/include, not in /usr/include/netpbm
script:
- which python
- which pip
- python --version
- pip --version
- export PYTHON=$(which python)
- export PIP=$(which pip)
- $PYTHON --version
- which $PYTHON
- which $PIP
- $PIP --version
- $PIP install numpy
- $PIP install fitsio
- $PYTHON -c "import numpy as np"
# quick py-only tests:
- export PYVER=$(python -c "from __future__ import print_function; import sys; print('%i.%i' % sys.version_info[:2])")
- if [ $PYVER != "2.7" ]; then PYTHONPATH=${PYTHONPATH}:. python util/timingpool.py; fi
- make
- make py
- make extra
- make test
- (cd util && ./test)
- (cd libkd && ./test)
- (cd solver && ./test)
- (cd plot && ./test)
- make install INSTALL_DIR=~/an PYTHON_SCRIPT="/usr/bin/env $PYTHON"
- ls ~/an/lib/python
- export PYTHONPATH=${PYTHONPATH}:~/an/lib/python
- (cd /tmp && $PYTHON -c "import astrometry.libkd.spherematch")
- export PATH=${PATH}:~/an/bin
- build-astrometry-index -d 3 -o index-9918.fits -P 18 -S mag -B 0.1 -s 0 -r 1 -I 9918 -M -i demo/tycho2-mag6.fits
- echo -e 'add_path .\ninparallel\nindex index-9918.fits' > 99.cfg
- solve-field --config 99.cfg demo/apod4.jpg --continue
- tablist demo/apod4.match
- listhead demo/apod4.wcs
addons:
apt:
packages:
- libnetpbm10
- libnetpbm10-dev
- netpbm
- wcslib-dev
- libcfitsio-dev
- swig
- gsl-bin
- libgsl-dev