Update .travis.yml for TokTok c-toxcore
This commit is contained in:
parent
334690f40f
commit
8743350029
71
.travis.yml
71
.travis.yml
@ -1,48 +1,39 @@
|
|||||||
language: c
|
dist: trusty
|
||||||
|
sudo: false
|
||||||
|
|
||||||
before_install:
|
addons:
|
||||||
- sudo add-apt-repository -y ppa:ubuntu-sdk-team/ppa
|
apt:
|
||||||
- sudo add-apt-repository -y ppa:kalakris/cmake
|
sources:
|
||||||
- sudo apt-get update -q
|
- sourceline: 'deb https://weechat.org/ubuntu trusty main'
|
||||||
|
packages:
|
||||||
|
- weechat-dev
|
||||||
|
|
||||||
# install libtoxav dependencies and a newer version of cmake
|
env:
|
||||||
- sudo apt-get install -y libopus-dev libvpx-dev cmake
|
# install dependencies under $HOME because we don't have sudo
|
||||||
|
- DEPENDENCY_DIR=$HOME/dependencies
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- _libsodium_version=1.0.0
|
# install libsodium, required by libtoxcore
|
||||||
- _weechat_version=v1.5
|
- 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 libsodium (libtoxcore dependency)
|
# install libtoxcore
|
||||||
- git clone git://github.com/jedisct1/libsodium.git
|
- mkdir c-toxcore && pushd c-toxcore
|
||||||
- pushd libsodium
|
&& curl -fSsL "https://github.com/TokTok/c-toxcore/archive/v0.1.6.tar.gz"
|
||||||
- git checkout tags/${_libsodium_version}
|
| tar -xz --strip-components 1
|
||||||
- ./autogen.sh
|
&& autoreconf -if
|
||||||
- ./configure
|
&& ./configure --disable-ntox --disable-tests --disable-daemon
|
||||||
- make -j3
|
--with-libsodium-libs="$DEPENDENCY_DIR/lib"
|
||||||
- sudo make install
|
--with-libsodium-headers="$DEPENDENCY_DIR/include"
|
||||||
- popd
|
--prefix="$DEPENDENCY_DIR"
|
||||||
|
&& make install
|
||||||
# install libtoxcore
|
&& popd
|
||||||
- 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
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mkdir build && cd build
|
- mkdir build && cd build
|
||||||
- cmake ..
|
- cmake -DCMAKE_PREFIX_PATH:PATH="$DEPENDENCY_DIR" ..
|
||||||
- make -j3
|
- make
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user