-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy path.travis.yml
45 lines (45 loc) · 1.38 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
os:
- linux
sudo: required
dist: trusty
language: c
compiler:
- gcc
- clang
addons:
apt:
packages:
- tree
script:
- 'curl -s -L https://github.com/sustrik/libmill/archive/master.tar.gz | tar -zxf -'
- 'mv libmill-master libmill'
- 'cd libmill'
- 'libtoolize || true'
- './autogen.sh'
- './configure --enable-shared=false --enable-static'
- 'make libmill.la'
- 'cd ../'
- 'curl -s -L https://github.com/jedisct1/libsodium/archive/master.tar.gz | tar -zxf -'
- 'mv libsodium-master libsodium'
- 'cd libsodium'
- 'libtoolize || true'
- './autogen.sh'
- './configure --enable-shared=false --enable-static'
- 'make'
- 'cd ../'
- 'curl -s -L https://github.com/lz4/lz4/archive/master.tar.gz | tar -zxf -'
- 'mv lz4-master lz4'
- 'cd lz4'
- 'make -C lib'
- 'cd ../'
- 'mkdir -p m4'
- 'autoreconf -if'
- 'export CPPFLAGS="-I$(pwd)/lz4/lib -I$(pwd)/libmill -I$(pwd)/libsodium/src/libsodium/include"'
- 'export LDFLAGS="-L$(pwd)/lz4/lib -L$(pwd)/libmill/.libs -L$(pwd)/libsodium/src/libsodium/.libs"'
- 'export LIBS="-lrt -lpthread"'
- './configure --prefix=/usr --sysconfdir=/etc --enable-shared=false --enable-static'
- 'make'
- 'make check || (cat tests/test_encapsulate.log && false)'
- 'tests/perf'
- 'make DESTDIR=$(pwd)/dist/ install'
- 'tree $(pwd)/dist/'