forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (54 loc) · 1.45 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
sudo: required
dist: trusty
language: c
compiler:
- gcc
- clang
before_script:
- sudo add-apt-repository ppa:avsm/ocaml42+opam12 -y
- sudo apt-get update -qq
- sudo apt-get install ocaml opam astyle -qq
- sudo apt-get install libconfig-dev libvpx-dev libopus-dev check -qq
# build apidsl
- git clone https://github.com/iphydf/apidsl
- cd apidsl
- export OPAMYES=1
- opam init
- opam install ocamlfind ppx_deriving menhir
- eval `opam config env`
- make -j3
- cd ..
# install sodium, as it's not in Ubuntu Trusty
- git clone git://github.com/jedisct1/libsodium.git
- cd libsodium
- git checkout tags/1.0.8
- ./autogen.sh
- ./configure
- make -j3
- sudo make install
- cd ..
- sudo ldconfig
script:
# check if toxcore.h and toxav.h match apidsl tox.in.h and toxav.in.h
# tox.h
- ./apidsl/_build/apigen.native ./other/apidsl/tox.in.h > tox.h
- astyle --options=./other/astyle/astylerc tox.h
- diff -u tox.h ./toxcore/tox.h
# toxav.h
- ./apidsl/_build/apigen.native ./other/apidsl/toxav.in.h > toxav.h
- astyle --options=./other/astyle/astylerc toxav.h
- diff -u toxav.h ./toxav/toxav.h
# build toxcore and run tests
- ./autogen.sh
- CFLAGS="-Ofast -Wall -Wextra" ./configure --enable-daemon --enable-ntox
- make
- make check
- cat build/test-suite.log
- make dist
notifications:
email: false
irc:
channels:
- "chat.freenode.net#tox-dev"
on_success: always
on_failure: always