2016-01-24 12:41:08 +08:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2013-06-25 08:56:38 +08:00
|
|
|
language: c
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2013-07-18 06:19:41 +08:00
|
|
|
- clang
|
2013-06-25 08:56:38 +08:00
|
|
|
|
2013-07-13 04:27:19 +08:00
|
|
|
before_script:
|
2016-03-04 01:23:32 +08:00
|
|
|
- sudo add-apt-repository ppa:avsm/ocaml42+opam12 -y
|
2016-01-24 12:41:08 +08:00
|
|
|
- sudo apt-get update -qq
|
2016-03-04 01:23:32 +08:00
|
|
|
- sudo apt-get install ocaml opam astyle -qq
|
2016-03-05 20:43:39 +08:00
|
|
|
- sudo apt-get install libconfig-dev libvpx-dev libopus-dev libminiupnpc-dev libnatpmp-dev check -qq
|
2016-03-04 01:23:32 +08:00
|
|
|
# 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 ..
|
2016-01-24 12:41:08 +08:00
|
|
|
# install sodium, as it's not in Ubuntu Trusty
|
2016-05-11 00:27:13 +08:00
|
|
|
- git clone https://github.com/jedisct1/libsodium.git
|
2013-07-13 04:27:19 +08:00
|
|
|
- cd libsodium
|
2016-05-11 00:27:13 +08:00
|
|
|
- git checkout tags/1.0.10
|
2016-03-04 01:23:32 +08:00
|
|
|
- ./autogen.sh
|
|
|
|
- ./configure
|
|
|
|
- make -j3
|
|
|
|
- sudo make install
|
2013-07-13 04:27:19 +08:00
|
|
|
- cd ..
|
2016-01-24 12:41:08 +08:00
|
|
|
- sudo ldconfig
|
2013-07-13 04:27:19 +08:00
|
|
|
|
2013-06-25 08:56:38 +08:00
|
|
|
script:
|
2016-03-04 01:23:32 +08:00
|
|
|
# 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
|
2016-01-24 12:41:08 +08:00
|
|
|
- ./autogen.sh
|
2014-06-11 07:02:43 +08:00
|
|
|
- CFLAGS="-Ofast -Wall -Wextra" ./configure --enable-daemon --enable-ntox
|
2016-01-24 12:41:08 +08:00
|
|
|
- make
|
2013-08-24 08:22:07 +08:00
|
|
|
- make check
|
2016-01-24 12:41:08 +08:00
|
|
|
- cat build/test-suite.log
|
2013-08-30 07:24:14 +08:00
|
|
|
- make dist
|
2013-06-25 08:56:38 +08:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
2013-07-13 06:31:57 +08:00
|
|
|
|
2016-01-24 12:41:08 +08:00
|
|
|
irc:
|
2013-06-25 08:56:38 +08:00
|
|
|
channels:
|
2013-07-30 03:34:28 +08:00
|
|
|
- "chat.freenode.net#tox-dev"
|
2013-06-25 08:56:38 +08:00
|
|
|
on_success: always
|
|
|
|
on_failure: always
|