2018-12-23 15:56:29 +00:00
|
|
|
dist: xenial
|
2017-02-04 00:05:41 +00:00
|
|
|
sudo: false
|
2018-04-30 17:27:57 +00:00
|
|
|
language: c
|
2014-09-02 20:23:09 +00:00
|
|
|
|
2017-02-04 00:05:41 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2018-12-23 15:56:29 +00:00
|
|
|
- sourceline: 'deb https://weechat.org/ubuntu xenial main'
|
2018-12-26 17:25:01 +00:00
|
|
|
key_url: https://weechat.org/dev/info/debian_repository_signing_key/
|
2017-02-04 00:05:41 +00:00
|
|
|
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
|
2018-04-30 16:03:29 +00:00
|
|
|
- DEPENDENCY_DIR="$HOME/dependencies" \
|
2018-05-02 10:53:07 +00:00
|
|
|
PKG_CONFIG_PATH="$DEPENDENCY_DIR/lib/pkgconfig:$PKG_CONFIG_PATH" \
|
2018-05-02 10:58:52 +00:00
|
|
|
CFLAGS=-Werror \
|
2018-05-02 10:53:07 +00:00
|
|
|
SODIUM_VERSION=1.0.16 \
|
2018-12-22 20:23:00 +00:00
|
|
|
TOXCORE_VERSION=0.2.8
|
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
|
2018-05-02 10:53:07 +00:00
|
|
|
&& curl -fSsL "https://download.libsodium.org/libsodium/releases/libsodium-$SODIUM_VERSION.tar.gz"
|
2017-02-04 00:05:41 +00:00
|
|
|
| tar -xz --strip-components 1
|
|
|
|
&& ./configure --prefix="$DEPENDENCY_DIR"
|
|
|
|
&& make install
|
|
|
|
&& popd
|
|
|
|
|
|
|
|
# install libtoxcore
|
|
|
|
- mkdir c-toxcore && pushd c-toxcore
|
2018-05-02 10:53:07 +00:00
|
|
|
&& curl -fSsL "https://github.com/TokTok/c-toxcore/archive/v$TOXCORE_VERSION.tar.gz"
|
2017-02-04 00:05:41 +00:00
|
|
|
| tar -xz --strip-components 1
|
2018-04-30 16:08:40 +00:00
|
|
|
&& cmake -DCMAKE_INSTALL_PREFIX="$DEPENDENCY_DIR" -DBUILD_AV_TEST=off
|
2017-02-04 00:05:41 +00:00
|
|
|
&& 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
|