2017-02-04 00:05:41 +00:00
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
2014-09-02 20:23:09 +00:00
|
|
|
|
2017-02-04 00:05:41 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'deb https://weechat.org/ubuntu trusty main'
|
|
|
|
packages:
|
|
|
|
- weechat-dev
|
2014-11-19 03:59:33 +00:00
|
|
|
|
2017-02-04 00:05:41 +00:00
|
|
|
env:
|
|
|
|
# install dependencies under $HOME because we don't have sudo
|
|
|
|
- DEPENDENCY_DIR=$HOME/dependencies
|
2014-11-19 03:59:33 +00:00
|
|
|
|
2014-09-18 16:06:02 +00:00
|
|
|
install:
|
2017-02-04 00:05:41 +00:00
|
|
|
# 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
|
2014-09-02 20:50:32 +00:00
|
|
|
|
2014-09-02 20:55:36 +00:00
|
|
|
script:
|
|
|
|
- mkdir build && cd build
|
2017-02-04 00:05:41 +00:00
|
|
|
- cmake -DCMAKE_PREFIX_PATH:PATH="$DEPENDENCY_DIR" ..
|
|
|
|
- make
|