mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added check of whether tox.h or toxav.h were edited directly
tox.h and toxav.h must be generated by apidsl instead of edited directly.
This commit is contained in:
parent
c510e2407f
commit
41046e2eef
33
.travis.yml
33
.travis.yml
|
@ -6,20 +6,41 @@ compiler:
|
||||||
- clang
|
- clang
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- sudo add-apt-repository ppa:avsm/ocaml42+opam12 -y
|
||||||
- sudo apt-get update -qq
|
- 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
|
- 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
|
# install sodium, as it's not in Ubuntu Trusty
|
||||||
- git clone git://github.com/jedisct1/libsodium.git > /dev/null
|
- git clone git://github.com/jedisct1/libsodium.git
|
||||||
- cd libsodium
|
- cd libsodium
|
||||||
- git checkout tags/1.0.8 > /dev/null
|
- git checkout tags/1.0.8
|
||||||
- ./autogen.sh > /dev/null
|
- ./autogen.sh
|
||||||
- ./configure > /dev/null
|
- ./configure
|
||||||
- make -j3 >/dev/null
|
- make -j3
|
||||||
- sudo make install >/dev/null
|
- sudo make install
|
||||||
- cd ..
|
- cd ..
|
||||||
- sudo ldconfig
|
- sudo ldconfig
|
||||||
|
|
||||||
script:
|
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
|
- ./autogen.sh
|
||||||
- CFLAGS="-Ofast -Wall -Wextra" ./configure --enable-daemon --enable-ntox
|
- CFLAGS="-Ofast -Wall -Wextra" ./configure --enable-daemon --enable-ntox
|
||||||
- make
|
- make
|
||||||
|
|
Loading…
Reference in New Issue
Block a user