summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml33
1 files changed, 27 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index a4dbc7a0..1fda1449 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,20 +6,41 @@ compiler:
6 - clang 6 - clang
7 7
8before_script: 8before_script:
9 - sudo add-apt-repository ppa:avsm/ocaml42+opam12 -y
9 - sudo apt-get update -qq 10 - sudo apt-get update -qq
11 - sudo apt-get install ocaml opam astyle -qq
10 - sudo apt-get install libconfig-dev libvpx-dev libopus-dev check -qq 12 - sudo apt-get install libconfig-dev libvpx-dev libopus-dev check -qq
13 # build apidsl
14 - git clone https://github.com/iphydf/apidsl
15 - cd apidsl
16 - export OPAMYES=1
17 - opam init
18 - opam install ocamlfind ppx_deriving menhir
19 - eval `opam config env`
20 - make -j3
21 - cd ..
11 # install sodium, as it's not in Ubuntu Trusty 22 # install sodium, as it's not in Ubuntu Trusty
12 - git clone git://github.com/jedisct1/libsodium.git > /dev/null 23 - git clone git://github.com/jedisct1/libsodium.git
13 - cd libsodium 24 - cd libsodium
14 - git checkout tags/1.0.8 > /dev/null 25 - git checkout tags/1.0.8
15 - ./autogen.sh > /dev/null 26 - ./autogen.sh
16 - ./configure > /dev/null 27 - ./configure
17 - make -j3 >/dev/null 28 - make -j3
18 - sudo make install >/dev/null 29 - sudo make install
19 - cd .. 30 - cd ..
20 - sudo ldconfig 31 - sudo ldconfig
21 32
22script: 33script:
34 # check if toxcore.h and toxav.h match apidsl tox.in.h and toxav.in.h
35 # tox.h
36 - ./apidsl/_build/apigen.native ./other/apidsl/tox.in.h > tox.h
37 - astyle --options=./other/astyle/astylerc tox.h
38 - diff -u tox.h ./toxcore/tox.h
39 # toxav.h
40 - ./apidsl/_build/apigen.native ./other/apidsl/toxav.in.h > toxav.h
41 - astyle --options=./other/astyle/astylerc toxav.h
42 - diff -u toxav.h ./toxav/toxav.h
43 # build toxcore and run tests
23 - ./autogen.sh 44 - ./autogen.sh
24 - CFLAGS="-Ofast -Wall -Wextra" ./configure --enable-daemon --enable-ntox 45 - CFLAGS="-Ofast -Wall -Wextra" ./configure --enable-daemon --enable-ntox
25 - make 46 - make