Update .travis.yml for TokTok c-toxcore

master
Håvard Pettersson 7 years ago
parent 334690f40f
commit 8743350029

@ -1,48 +1,39 @@
language: c
dist: trusty
sudo: false
before_install:
- sudo add-apt-repository -y ppa:ubuntu-sdk-team/ppa
- sudo add-apt-repository -y ppa:kalakris/cmake
- sudo apt-get update -q
addons:
apt:
sources:
- sourceline: 'deb https://weechat.org/ubuntu trusty main'
packages:
- weechat-dev
# install libtoxav dependencies and a newer version of cmake
- sudo apt-get install -y libopus-dev libvpx-dev cmake
env:
# install dependencies under $HOME because we don't have sudo
- DEPENDENCY_DIR=$HOME/dependencies
install:
- _libsodium_version=1.0.0
- _weechat_version=v1.5
# install libsodium (libtoxcore dependency)
- git clone git://github.com/jedisct1/libsodium.git
- pushd libsodium
- git checkout tags/${_libsodium_version}
- ./autogen.sh
- ./configure
- make -j3
- sudo make install
- popd
# install libtoxcore
- git clone git://github.com/irungentoo/toxcore
- pushd toxcore
- autoreconf -i
- ./configure --disable-testing --disable-ntox
- make -j3
- sudo make install
- popd
# install weechat
- git clone git://github.com/weechat/weechat
- pushd weechat
- git checkout tags/${_weechat_version}
- mkdir build && cd build
- cmake ..
- make -j3
- sudo make install
- popd
# install libsodium, required by libtoxcore
- mkdir libsodium && pushd libsodium
&& curl -fSsL "https://download.libsodium.org/libsodium/releases/libsodium-1.0.11.tar.gz"
| tar -xz --strip-components 1
&& ./configure --prefix="$DEPENDENCY_DIR"
&& make install
&& popd
# install libtoxcore
- mkdir c-toxcore && pushd c-toxcore
&& curl -fSsL "https://github.com/TokTok/c-toxcore/archive/v0.1.6.tar.gz"
| tar -xz --strip-components 1
&& autoreconf -if
&& ./configure --disable-ntox --disable-tests --disable-daemon
--with-libsodium-libs="$DEPENDENCY_DIR/lib"
--with-libsodium-headers="$DEPENDENCY_DIR/include"
--prefix="$DEPENDENCY_DIR"
&& make install
&& popd
script:
- mkdir build && cd build
- cmake ..
- make -j3
- cmake -DCMAKE_PREFIX_PATH:PATH="$DEPENDENCY_DIR" ..
- make

Loading…
Cancel
Save