mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Update Travis script
Reduces the running time from about 8 minutes to about 5, as it uses packaged libraries instead of building them. This is possible because of the Ubuntu Trusty becoming available on Travis. The new check that is in Trusty has different behaviour than the previously user version of it -- it doesn't output the detailed result of tests. To fix this we cat a file where this detailed result is stored.
This commit is contained in:
parent
bd62c6a359
commit
e4f86e2485
47
.travis.yml
47
.travis.yml
|
@ -1,59 +1,36 @@
|
||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
language: c
|
language: c
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
#installing libsodium, needed for Core
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get install libconfig-dev libvpx-dev libopus-dev check -qq
|
||||||
|
# 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 > /dev/null
|
||||||
- cd libsodium
|
- cd libsodium
|
||||||
- git checkout tags/1.0.0 > /dev/null
|
- git checkout tags/1.0.8 > /dev/null
|
||||||
- ./autogen.sh > /dev/null
|
- ./autogen.sh > /dev/null
|
||||||
- ./configure > /dev/null
|
- ./configure > /dev/null
|
||||||
- make check -j3 > /dev/null
|
- make -j3 >/dev/null
|
||||||
- sudo make install >/dev/null
|
- sudo make install >/dev/null
|
||||||
- cd ..
|
- cd ..
|
||||||
#installing yasm, needed for compiling vpx
|
- sudo ldconfig
|
||||||
- sudo apt-get install yasm > /dev/null
|
|
||||||
#installing libconfig, needed for DHT_bootstrap_daemon
|
|
||||||
- wget http://www.hyperrealm.com/libconfig/libconfig-1.4.9.tar.gz > /dev/null
|
|
||||||
- tar -xvzf libconfig-1.4.9.tar.gz > /dev/null
|
|
||||||
- cd libconfig-1.4.9
|
|
||||||
- ./configure > /dev/null
|
|
||||||
- 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.0.3.tar.gz > /dev/null
|
|
||||||
- tar xzf opus-1.0.3.tar.gz > /dev/null
|
|
||||||
- cd opus-1.0.3
|
|
||||||
- ./configure > /dev/null
|
|
||||||
- make -j3 > /dev/null
|
|
||||||
- sudo make install > /dev/null
|
|
||||||
- cd ..
|
|
||||||
#installing vpx
|
|
||||||
- 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 libraries links and updating cache
|
|
||||||
- sudo ldconfig > /dev/null
|
|
||||||
#installing check, needed for unit tests
|
|
||||||
- sudo apt-get install check > /dev/null
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- autoreconf -i
|
- ./autogen.sh
|
||||||
- CFLAGS="-Ofast -Wall -Wextra" ./configure --enable-daemon --enable-ntox
|
- CFLAGS="-Ofast -Wall -Wextra" ./configure --enable-daemon --enable-ntox
|
||||||
- make -j3
|
- make
|
||||||
- make check
|
- make check
|
||||||
|
- cat build/test-suite.log
|
||||||
- make dist
|
- make dist
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
||||||
irc:
|
irc:
|
||||||
channels:
|
channels:
|
||||||
- "chat.freenode.net#tox-dev"
|
- "chat.freenode.net#tox-dev"
|
||||||
on_success: always
|
on_success: always
|
||||||
|
|
Loading…
Reference in New Issue
Block a user