tox-weechat/.travis.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

dist: trusty
sudo: false
2018-04-30 19:27:57 +02:00
language: c
2014-09-02 22:23:09 +02:00
addons:
apt:
sources:
- sourceline: 'deb https://weechat.org/ubuntu trusty main'
key_url: https://haavard.me/files/weechat_signing_key.gpg
packages:
- weechat-dev
2014-11-19 04:59:33 +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" \
CFLAGS=-Werror \
SODIUM_VERSION=1.0.16 \
2018-12-22 21:23:00 +01:00
TOXCORE_VERSION=0.2.8
2014-11-19 04:59:33 +01:00
2014-09-18 18:06:02 +02:00
install:
# install libsodium, required by libtoxcore
- mkdir libsodium && pushd libsodium
&& curl -fSsL "https://download.libsodium.org/libsodium/releases/libsodium-$SODIUM_VERSION.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/v$TOXCORE_VERSION.tar.gz"
| tar -xz --strip-components 1
2018-04-30 18:08:40 +02:00
&& cmake -DCMAKE_INSTALL_PREFIX="$DEPENDENCY_DIR" -DBUILD_AV_TEST=off
&& make install
&& popd
2014-09-02 22:55:36 +02:00
script:
- mkdir build && cd build
- cmake -DCMAKE_PREFIX_PATH:PATH="$DEPENDENCY_DIR" ..
- make