-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
45 lines (36 loc) · 1.37 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
# This is the configuration for Travis CI, a free github-integrated service that runs this script for each pull request (if configured)
# Ubuntu 14.04 Trusty support
sudo: required
dist: trusty
# provides gcc, clang, make, scons, cmake
language: c++
# alternatives: gcc, clang, or both (as yaml list)
compiler: gcc
addons:
apt:
packages:
- libbz2-dev
- python3
before_install:
# Don't touch source code directory
- cd ..
- wget https://github.com/y-256/libdivsufsort/archive/2.0.1.tar.gz -O /tmp/libdivsufsort.tar.gz
- tar xzf /tmp/libdivsufsort.tar.gz
- wget https://cmake.org/files/v3.1/cmake-3.1.3-Linux-x86_64.tar.gz -O /tmp/cmake.tar.gz
- tar xzf /tmp/cmake.tar.gz
- export PATH=`pwd`/cmake-3.1.3-Linux-x86_64/bin/:${PATH}
install:
- mkdir libdivsufsort-build libdivsufsort-install
- export LIBDIVSUFSORT_INSTALL_PREFIX=`pwd`/libdivsufsort-install
- cd libdivsufsort-build
- cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DUSE_OPENMP:BOOL=ON -DBUILD_DIVSUFSORT64:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=${LIBDIVSUFSORT_INSTALL_PREFIX} ../libdivsufsort-2.0.1
- make -j4 && make install
- cd ..
script:
- mkdir andiff-build
- cd andiff-build
- cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLIBDIVSUFSORT_PREFIX:PATH=${LIBDIVSUFSORT_INSTALL_PREFIX} ../andiff
- make
- ctest -V
notifications:
email: false