-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
97 lines (92 loc) · 2.7 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
language: python
dist: xenial
addons:
apt:
packages:
python-numpy
python-scipy
python-pyfits
python-matplotlib
matrix:
include:
- python: "3.4"
env: BUILD_TYPE=spellcheck
addons:
apt:
packages: &deps_aspell
aspell
aspell-en
libcfitsio3-dev
libnova-dev
libncurses5-dev
pkg-config
- python: "3.5"
- python: "3.6"
- python: "2.7"
addons:
apt:
packages:
libc6-dev
libtool
libcfitsio3-dev
libnova-dev
libncurses5-dev
libgraphicsmagick++1-dev
libx11-dev
dblatex
docbook-xsl
docbook-xsl-ns
asciidoc
libxml2-utils
xsltproc
libxml2-dev
libarchive-dev
libxt-dev
libfftw3-dev
gnuplot-x11
libjson-glib-dev
libsoup2.4-dev
pkg-config
postgresql-server-dev-all
libecpg-dev
wget
check
env: PKG_CONFIG_PATH="$(pwd)/erfa-1.2.0/build/lib/pkgconfig"
- python: "2.7"
addons:
apt:
packages:
libc6-dev
libtool
libcfitsio3-dev
libnova-dev
libncurses5-dev
libgraphicsmagick++1-dev
libx11-dev
dblatex
docbook-xsl
docbook-xsl-ns
asciidoc
libxml2-utils
xsltproc
libxml2-dev
libarchive-dev
libxt-dev
libfftw3-dev
gnuplot-x11
libjson-glib-dev
libsoup2.4-dev
pkg-config
postgresql-server-dev-all
libecpg-dev
wget
check
install:
- pip install lmfit
- pip install future
script:
- export RET_PYTHON_CHECK="x"
- cd checks && for x in check_python*; do ./$x; if [[ $? != 0 ]]; then RET_PYTHON_CHECK=$x; fi; done && cd ..
- if [ "x$BUILD_TYPE" == "xspellcheck" ]; then (./autogen.sh && ./configure --without-pgsql && make && make spellcheck && make check || (cat checks/test-suite.log; false)); fi
- if [ "x$BUILD_TYPE" != "xspellcheck" -a $TRAVIS_PYTHON_VERSION == '2.7' ]; then (wget https://github.com/liberfa/erfa/archive/v1.2.0.tar.gz && tar xzf v1.2.0.tar.gz && cd erfa-1.2.0/ && ./bootstrap.sh && ./configure --prefix=`pwd`/build && make install && cd .. && echo $PKG_CONFIG_PATH && ./autogen.sh && ./configure && make && make check || (cat checks/test-suite.log; false)); fi
- if [[ "x$RET_PYTHON_CHECK" != "xx" ]]; then echo "failed " $RET_PYTHON_CHECK; exit 1; fi