forked from cleverca22/toxvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (38 loc) · 906 Bytes
/
.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
---
language: c
sudo: false
compiler:
- gcc
os:
- linux
- osx
addons:
apt:
packages:
- libjsoncpp-dev
- libcap-dev
cache:
directories:
- $HOME/libsodium
before_script:
# installing libsodium, needed for Core
- ./scripts/libsodium.sh
- ./scripts/jsoncpp.sh
# creating libraries links and updating cache
# - sudo ldconfig > /dev/null
# and toxcore
- git clone git://github.com/TokTok/toxcore.git > /dev/null
- cd toxcore
- autoreconf -i
- CFLAGS="-Ofast -Wall -Wextra" ./configure --enable-daemon --enable-ntox --with-libsodium-headers=${HOME}/libsodium/include/ --with-libsodium-libs=${HOME}/libsodium/lib/ --prefix=${HOME}/toxcore/
- make -j3
- make check
- make install
- cd ..
script:
- mkdir build
- cd build
- cmake ../ -DSTATIC=1 -DTOX_PREFIX=${HOME}/toxcore/ -DSODIUM_PREFIX=${HOME}/libsodium/
- make
notification:
email: false