-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
68 lines (68 loc) · 2.09 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
language: node_js
node_js:
- "0.10"
- "0.12"
- "1"
- "2"
- "3.2"
- "4"
# io.js v3+ requires C++11
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.8
- export CXX="g++-4.8"
# This is basically copied from toxcore's .travis.yml, without libcheck
# Unsure of a better way of getting toxcore+deps installed
before_script:
#installing libsodium, needed for Core
- git clone git://github.com/jedisct1/libsodium.git > /dev/null
- cd libsodium
- git checkout tags/1.0.3 > /dev/null
- ./autogen.sh > /dev/null
- ./configure > /dev/null
- make check -j3 > /dev/null
- sudo make install >/dev/null
- cd ..
#installing yasm, needed for compiling vpx
- sudo apt-get install yasm > /dev/null
#installing libconfig, needed for DHT_bootstrap_daemon
- wget http://www.hyperrealm.com/libconfig/libconfig-1.4.9.tar.gz > /dev/null
- tar -xvzf libconfig-1.4.9.tar.gz > /dev/null
- cd libconfig-1.4.9
- ./configure > /dev/null
- make -j3 > /dev/null
- sudo make install > /dev/null
- cd ..
#installing libopus, needed for audio encoding/decoding
- wget http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz > /dev/null
- tar xzf opus-1.1.tar.gz > /dev/null
- cd opus-1.1
- ./configure > /dev/null
- make -j3 > /dev/null
- sudo make install > /dev/null
- cd ..
#installing vpx
- git clone https://chromium.googlesource.com/webm/libvpx.git > /dev/null
- cd libvpx
- git checkout tags/v1.3.0
- ./configure --enable-shared > /dev/null
- make -j3 >/dev/null
- sudo make install > /dev/null
- cd ..
#creating libraries links and updating cache
- sudo ldconfig > /dev/null
#installing check, needed for unit tests
#- sudo apt-get install check > /dev/null
#build/install toxcore
- git clone https://github.com/irungentoo/toxcore.git
- cd toxcore
- autoreconf -i
- CFLAGS="-Ofast -Wall -Wextra" ./configure --enable-daemon --enable-ntox
- make -j3
#- make check
#- make dist
- sudo make install > /dev/null
- cd ..
#re-update cache
- sudo ldconfig > /dev/null