forked from libamtrack/library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (42 loc) · 1.64 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
language: c
os:
- linux
compiler:
- clang
- gcc
python:
- "2.7"
# needed to run dpkg -i
sudo: true
addons:
apt:
packages:
- gfortran
# run on Ubuntu 16.04
dist: xenial
# Ubuntu 16.04 has pretty old (2.1) version of GSL
# libamtrack needs GSL version 2.5, hence we install it from deb packages of Ubuntu 18.04 repo
before_install:
- mkdir m4
- wget https://launchpad.net/ubuntu/+source/gsl/2.5+dfsg-5/+build/15307668/+files/libgslcblas0_2.5+dfsg-5_amd64.deb # newest GSL (2.5) from Ubuntu 18.04 repo
- wget https://launchpad.net/ubuntu/+source/gsl/2.5+dfsg-5/+build/15307668/+files/libgsl23_2.5+dfsg-5_amd64.deb
- wget https://launchpad.net/ubuntu/+source/gsl/2.5+dfsg-5/+build/15307668/+files/libgsl-dev_2.5+dfsg-5_amd64.deb
- wget https://launchpad.net/ubuntu/+source/gsl/2.5+dfsg-5/+build/15307668/+files/gsl-bin_2.5+dfsg-5_amd64.deb
- sudo dpkg -i *.deb
- gsl-config --version # print the currently installed version of GSL
- autoreconf --force --install
install:
- ./configure --prefix=$HOME/usr
# If before_install, install or before_script returns a non-zero exit code, the build is errored and stops immediately.
before_script:
- make README
- make -j2
- make install
# If script returns a non-zero exit code, the build is failed, but continues to run before being marked as failed.
script:
- $HOME/usr/bin/amtrack_test
- $HOME/usr/bin/amtrack_demo
- cd distributions/Python/pyamtrack && python generate_Py_wrapper.py
- LD_LIBRARY_PATH=$HOME/usr/lib python pyamtrack.py
# Tigger rebuild image in docker hub libamtrack/libamtrackforjs
- $TRAVIS_BUILD_DIR/distributions/JavaScript/trigger_docker_rebuild.sh