-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
49 lines (48 loc) · 1.83 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
language: c
dist: xenial
addons:
apt:
packages:
- tree
- cmake
env:
matrix:
- TRANSOCKS_OPTIONS="-DENABLE_DEBUG=ON -DLibevent2_USE_STATIC_LIB=ON"
- TRANSOCKS_OPTIONS="-DENABLE_DEBUG=ON -DLibevent2_USE_STATIC_LIB=OFF"
- TRANSOCKS_OPTIONS="-DENABLE_DEBUG=OFF -DLibevent2_USE_STATIC_LIB=ON"
- TRANSOCKS_OPTIONS="-DENABLE_DEBUG=OFF -DLibevent2_USE_STATIC_LIB=OFF"
- TRANSOCKS_OPTIONS="-DENABLE_DEBUG=OFF -DLibevent2_USE_STATIC_LIB=ON -DWITH_MEM_ALLOCATOR=mimalloc"
- TRANSOCKS_OPTIONS="-DENABLE_DEBUG=OFF -DLibevent2_USE_STATIC_LIB=OFF -DWITH_MEM_ALLOCATOR=mimalloc"
before_install:
- echo "build libevent2"
- LIBEVENT_VER=2.1.11-stable
- SRCDIR=$PWD
- echo $SRCDIR
- curl -O -L https://github.com/libevent/libevent/releases/download/release-${LIBEVENT_VER}/libevent-${LIBEVENT_VER}.tar.gz
- tar xf libevent-${LIBEVENT_VER}.tar.gz
- pushd libevent-*
- ./configure --prefix=$SRCDIR/libevent-install && make && make install
- tree $SRCDIR/libevent-install
- popd
- echo "build mimalloc"
- MIMALLOC_VER=1.0.8
- SRCDIR=$PWD
- echo $SRCDIR
- curl -O -L https://github.com/microsoft/mimalloc/archive/v${MIMALLOC_VER}.tar.gz
- tar xf v${MIMALLOC_VER}.tar.gz
- pushd mimalloc-${MIMALLOC_VER}
- mkdir mimalloc-install
- pushd mimalloc-install
- cmake -DCMAKE_INSTALL_PREFIX:PATH="$SRCDIR/mimalloc-${MIMALLOC_VER}/mimalloc-install" .. && make install
- tree $SRCDIR/mimalloc-${MIMALLOC_VER}/mimalloc-install
- popd
- popd
script:
- SRCDIR=$PWD
- echo $SRCDIR
- mkdir build
- pushd build
- cmake -DCMAKE_INSTALL_PREFIX:PATH="$SRCDIR/transocks-wong-bin" -DCMAKE_FIND_ROOT_PATH:PATH=$SRCDIR/libevent-install\;$SRCDIR/mimalloc-${MIMALLOC_VER}/mimalloc-install\;/usr $TRANSOCKS_OPTIONS ..
- make install
- tree $SRCDIR/transocks-wong-bin
- ldd $SRCDIR/transocks-wong-bin/bin/transocks-wong