2017-02-04 01:05:41 +01:00
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
2014-09-02 22:23:09 +02:00
|
|
|
|
2017-02-04 01:05:41 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'deb https://weechat.org/ubuntu trusty main'
|
|
|
|
packages:
|
|
|
|
- weechat-dev
|
2014-11-19 04:59:33 +01:00
|
|
|
|
2017-02-04 01:05:41 +01:00
|
|
|
env:
|
|
|
|
# install dependencies under $HOME because we don't have sudo
|
2018-04-30 18:03:29 +02:00
|
|
|
- DEPENDENCY_DIR="$HOME/dependencies" \
|
|
|
|
PKG_CONFIG_PATH="$DEPENDENCY_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"
|
2014-11-19 04:59:33 +01:00
|
|
|
|
2014-09-18 18:06:02 +02:00
|
|
|
install:
|
2017-02-04 01:05:41 +01:00
|
|
|
# install libsodium, required by libtoxcore
|
|
|
|
- mkdir libsodium && pushd libsodium
|
2018-04-12 22:29:32 +02:00
|
|
|
&& curl -fSsL "https://download.libsodium.org/libsodium/releases/libsodium-1.0.16.tar.gz"
|
2017-02-04 01:05:41 +01:00
|
|
|
| tar -xz --strip-components 1
|
|
|
|
&& ./configure --prefix="$DEPENDENCY_DIR"
|
|
|
|
&& make install
|
|
|
|
&& popd
|
|
|
|
|
|
|
|
# install libtoxcore
|
|
|
|
- mkdir c-toxcore && pushd c-toxcore
|
2018-04-12 22:29:32 +02:00
|
|
|
&& curl -fSsL "https://github.com/TokTok/c-toxcore/archive/v0.2.1.tar.gz"
|
2017-02-04 01:05:41 +01:00
|
|
|
| tar -xz --strip-components 1
|
2018-04-30 18:01:07 +02:00
|
|
|
&& cmake -DCMAKE_INSTALL_PREFIX="$DEPENDENCY_DIR" \
|
|
|
|
-DBUILD_AV_TEST=off \
|
|
|
|
-DBUILD_NTOX=off
|
2017-02-04 01:05:41 +01:00
|
|
|
&& make install
|
|
|
|
&& popd
|
2014-09-02 22:50:32 +02:00
|
|
|
|
2014-09-02 22:55:36 +02:00
|
|
|
script:
|
|
|
|
- mkdir build && cd build
|
2017-02-04 01:05:41 +01:00
|
|
|
- cmake -DCMAKE_PREFIX_PATH:PATH="$DEPENDENCY_DIR" ..
|
|
|
|
- make
|