-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (42 loc) · 1.12 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
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
env:
matrix:
- CONF=debug ARCH=x86_64
- CONF=release ARCH=x86_64
before_install:
- cd thirdparty
- cmake -P downloadPackages.cmake
- for t in `ls *.tar.gz`; do tar xvf $t; done
- ./unix_build.sh
- cd ..
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get update;
if [ "$ARCH" == "x86" ]; then
sudo apt-get install -qq libcurl4-openssl-dev:i386 libapr1-dev:i386 libapr1-dbg:i386 libaprutil1-dev:i386 libaprutil1-dbg:i386 libpcre3-dev:i386 libpcre3-dbg:i386;
else
sudo apt-get install -qq libcurl4-openssl-dev libapr1-dev libapr1-dbg libaprutil1-dev libaprutil1-dbg libpcre3-dev libpcre3-dbg;
fi
fi
install: true
before_script:
- mkdir build
- echo ${ARCH}
- if [ "${ARCH}" == "x86" ]; then ARCH_FLAGS=-m32; else ARCH_FLAGS=-m64; fi
- (cd build &&
cmake -DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=$CONF
-DCMAKE_CXX_FLAGS="$ARCH_FLAGS"
..)
script:
- (cd build && make)
after_success:
- echo build success
- ./build/tests/unittests
after_failure:
- echo build failure