forked from draios/sysdig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (70 loc) · 2.23 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: c
env:
- BUILD_TYPE=Debug
- BUILD_TYPE=Release
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update
install:
- sudo apt-get install g++-4.8
- sudo apt-get install rpm linux-headers-$(uname -r)
- sudo apt-get purge libncurses5-dev cmake libcurl4-openssl-dev zlib1g-dev
before_script:
- export KERNELDIR=/lib/modules/$(ls /lib/modules | sort | head -1)/build
script:
- set -e
- export CC="gcc-4.8"
- export CXX="g++-4.8"
- wget https://s3.amazonaws.com/download.draios.com/dependencies/cmake-3.3.2.tar.gz
- tar -xzf cmake-3.3.2.tar.gz
- cd cmake-3.3.2
- ./bootstrap --prefix=/usr
- make
- sudo make install
- cd ..
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- make VERBOSE=1
- make package
- cd ..
- test/sysdig_trace_regression.sh build/userspace/sysdig/sysdig build/userspace/sysdig/chisels $TRAVIS_BRANCH
- rm -rf build
- pushd $(mktemp -d --tmpdir sysdig.XXXXXXXXXX)
- wget http://download.draios.com/dependencies/zlib-1.2.8.tar.gz
- tar -xzf zlib-1.2.8.tar.gz
- cd zlib-1.2.8
- ./configure
- make
- sudo make install
- cd ..
- wget https://github.com/open-source-parsers/jsoncpp/archive/0.10.5.tar.gz
- tar zxvf 0.10.5.tar.gz
- cd jsoncpp-0.10.5
- cmake -DBUILD_SHARED_LIBS=ON .
- make
- sudo make install
- cd ..
- wget https://s3.amazonaws.com/download.draios.com/dependencies/libb64-1.2.src.zip
- unzip libb64-1.2.src.zip
- cd libb64-1.2
- make
- sudo cp -r include/* /usr/local/include/
- sudo cp src/libb64.a /usr/local/lib/
- popd
- rm -rf userspace/libsinsp/third-party/jsoncpp
- sudo apt-get install libncurses5-dev libluajit-5.1-dev libcurl4-openssl-dev libssl-dev
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DUSE_BUNDLED_DEPS=OFF
- make VERBOSE=1
- make package
- cd ..
- test/sysdig_trace_regression.sh build/userspace/sysdig/sysdig build/userspace/sysdig/chisels $TRAVIS_BRANCH
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/fdbc2356fb0ea2f15033
on_success: change
on_failure: always
on_start: never