-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
70 lines (65 loc) · 2.27 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
language: cpp
os:
- linux
- osx
sudo: false
cache: ccache
branches:
only:
- master
- /v\d.*/
env:
global:
MINICONDA: $HOME/miniconda
BASH_ENV: $HOME/.bashrc
install:
- ./ci_scripts/install_conda.sh
- source $BASH_ENV
- conda list
- export LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$MINICONDA/lib"
- case "$(uname)" in
Linux) OSNAME=linux;;
Darwin) OSNAME=macos;;
esac
script:
- ./autogen.sh
- ./configure
--with-arbhome=$MINICONDA/lib/arb
--with-boost=$MINICONDA
--with-boost-libdir=$MINICONDA/lib
--with-tbb=$MINICONDA
--prefix=$HOME/install
--disable-docs
|| (cat config.log; false)
- make -j2
- make check || (cat test-suite.log; false)
- make install
- $HOME/install/bin/sina --help
- DISTCHECK_CONFIGURE_FLAGS="--with-arbhome=$MINICONDA/lib/arb --with-boost=$CONDA_PREFIX --with-boost-libdir=$MINICONDA/lib --with-tbb=$MINICONDA --disable-docs" make distcheck
- if test "$(uname)" = "Linux"; then rm sina-*.tar.gz; fi
- ./configure
--with-arbhome=$MINICONDA/lib/arb
--with-boost=$MINICONDA
--with-boost-libdir=$MINICONDA/lib
--with-tbb=$MINICONDA
--prefix=$HOME/install
--disable-docs
--enable-fat-tar
|| (cat config.log; false)
- make bindist-gzip
- mkdir install
- cd install
- tar -xvzf ../sina-*-$OSNAME.tar.gz
- mv $MINICONDA $MINICONDA.bkup; hash -r
- ./sina-*/sina --help
- cd ..
deploy:
provider: releases
api_key:
secure: PAMAHWSFyRawrBjfsQiQxXvjWm85kZWsBn3MZ87ZIsIFLJxsd5JDl1V3VLYbDqo2v2GYXx1Ew9fkffr9O76XdWwdY0OCUn1P7jBcJXSiLKAQUS7agyV3U0H4gVu2Ghyrr3qiNNLPbKij8iXmKKoqgYq1PXAXzn6d9rqc0Cloh8gxhlhjAJAJfMchbeTaf6VulIpSk0hlFIvDhPXqpQ/Nrrac3c4aVn3CIC0TVcy8hMFjPNiLio5Vxj3XT5UjJChen8Af3sm1Kj+HzgyYzNHuCJ5sBw5kqh2gKlTvFyl9SOcludVAPRIHquJ5pmp8+EPJ6Yv0upe4QrdnJh6nGAZTkXbAb2VqOaZqR53w+F0+EsQqzkAnFCTJPfUco4yS41H6880gJTuONcWyQWyLgvNp43aK26rADfGlBf6O3p5upm9VyktpR/y2UWtWZZgoHjDMty9QNKd1vpUwr7gySU5nkYlBoixhJ6+qfhufuAcF6Btxll1ypIfbifPcGCeqQ5s2qGfuPJ7sRrB1KlpzttcmBHj5qidWSqktqQ3DnlSv3RCc10dE/iU+AngdO+3xaLax4dnlzA1/kbHmTHJVOzkXvec/lbF725fTqK9sJNa11a7HIG4mtg+8ywclDyESISUS5HWD3ejvbBOsKdq3dP7SFQg0nmHsvXcK+y3JESuDK/Q=
file_glob: true
file: sina-*.tar.{gz,bz2}
skip_cleanup: true
on:
repo: epruesse/SINA
tags: true