File: .travis.yml

package info (click to toggle)
andi 0.12-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 1,016 kB
  • sloc: ansic: 2,107; cpp: 382; sh: 196; makefile: 98; awk: 51
file content (46 lines) | stat: -rw-r--r-- 1,715 bytes parent folder | download
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
language: cpp
compiler:
  - gcc
  - clang
sudo: false
addons:
  apt:
    sources:
      - deadsnakes
      - ubuntu-toolchain-r-test
    packages:
      - cmake
      - libglib2.0-dev
      - libgsl0-dev

install:
  - export LIBDIVDIR="$HOME/libdivsufsort"
  - pip install --user cpp-coveralls
  - wget https://github.com/y-256/libdivsufsort/archive/master.tar.gz
  - tar -xzvf master.tar.gz
  - cd libdivsufsort-master && mkdir build && cd build
  - cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="$LIBDIVDIR" ..
  - make && make install

script:
- CONFIGURE_FLAGS=""
- export LD_LIBRARY_PATH="$LIBDIVDIR:$LIBDIVDIR/lib"
- export LIBRARY_PATH="$LIBDIVDIR:$LIBRARY_PATH"
- cd $TRAVIS_BUILD_DIR
- autoreconf -fvi -Im4
- export MYFLAGS="-fprofile-arcs -ftest-coverage -I$LIBDIVDIR/include"
- if [ "${CC}" = "clang" ]; then export CONFIGURE_FLAGS="--disable-openmp"; fi
- ./configure $CONFIGURE_FLAGS --enable-unit-tests LDFLAGS="-L$LIBDIVDIR/lib" CFLAGS="$MYFLAGS" CXXFLAGS="$MYFLAGS"
- make
- make check || cat ./test-suite.log || exit 1
- export MYFLAGS="-I$LIBDIVDIR/include"
- ./configure $CONFIGURE_FLAGS --enable-unit-tests LDFLAGS="-L$LIBDIVDIR/lib" CFLAGS="$MYFLAGS" CXXFLAGS="$MYFLAGS"
- make distcheck DISTCHECK_CONFIGURE_FLAGS="LDFLAGS=\"-L$LIBDIVDIR/lib\" CFLAGS=\"-I$LIBDIVDIR/include\" CXXFLAGS=\"-I$LIBDIVDIR/include\" $CONFIGURE_FLAGS"
- tar xzvf andi-*.tar.gz
- cd andi-*
- ./configure $CONFIGURE_FLAGS --enable-unit-tests --without-libdivsufsort
- make
- make check || cat ./test-suite.log || exit 1
- cd ..
after_success:
- if [ "$CXX" = "g++" ]; then coveralls --exclude libdivsufsort-master -E '^andi-.*' --exclude libs --exclude test --gcov `which gcov-4.8` --gcov-options '\-lp'; fi