-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.travis.yml
71 lines (64 loc) · 1.67 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
71
language: go
go:
- "1.4"
- "1.5"
- "1.6"
- "1.7"
compiler:
- gcc
- clang
install:
- sudo apt-get update
# installing libsodium, needed for toxcore
- git clone https://github.com/jedisct1/libsodium.git
- cd libsodium
- git checkout tags/1.0.3
- ./autogen.sh
- ./configure --prefix=/usr
- 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
- make -j3 > /dev/null
- sudo make install > /dev/null
- cd ..
# installing vpx
- sudo apt-get install yasm
- git clone https://chromium.googlesource.com/webm/libvpx > /dev/null
- cd libvpx
- ./configure --enable-shared > /dev/null
- make -j3 >/dev/null
- sudo make install > /dev/null
- cd ..
# creating librarys' links and updating cache
- sudo ldconfig
- git clone https://github.com/irungentoo/toxcore.git toxcore
- cd toxcore
- autoreconf -i
- ./configure --prefix=/usr --disable-tests --disable-ntox
- make -j2
- sudo make install
- cd ..
- sudo ldconfig > /dev/null
- apt-cache search tox
- apt-cache search opus
- apt-cache search libvpx
script:
- pwd
- go get github.com/streamrail/concurrent-map
# - go get -v -x github.com/kitech/go-toxcore
# - go get -v -x github.com/kitech/go-toxcore/examples
- go install -v -x
- go build -v -x -o echobot ./examples/toxecho.go
- go test -v -covermode count -timeout 60m
notifications:
email: false
# irc:
# channels:
# - "chat.freenode.net#tox-dev"
# on_success: always
# on_failure: always