2018-08-18 01:48:35 +02:00
|
|
|
---
|
2018-02-26 08:34:38 +01:00
|
|
|
language: python
|
|
|
|
python: nightly
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2018-08-18 01:48:35 +02:00
|
|
|
- astyle
|
|
|
|
- libalut-dev
|
|
|
|
- libconfig-dev
|
|
|
|
- libnotify-dev
|
|
|
|
- libopenal-dev
|
|
|
|
- libopus-dev
|
|
|
|
- libqrencode-dev
|
|
|
|
- libvpx-dev
|
2018-02-26 08:34:38 +01:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
2018-08-18 01:48:35 +02:00
|
|
|
- $HOME/cache
|
2018-02-26 08:34:38 +01:00
|
|
|
|
|
|
|
install:
|
2018-08-18 01:48:35 +02:00
|
|
|
# Where to find libraries.
|
|
|
|
- export LD_LIBRARY_PATH=$HOME/cache/usr/lib
|
|
|
|
- export PKG_CONFIG_PATH=$HOME/cache/usr/lib/pkgconfig
|
|
|
|
# c-sodium
|
|
|
|
- git clone --depth=1 --branch=stable https://github.com/jedisct1/libsodium ../libsodium
|
|
|
|
- test -f $HOME/cache/usr/lib/libsodium.so || (cd ../libsodium && ./configure --prefix=$HOME/cache/usr && make install -j$(nproc))
|
|
|
|
# c-toxcore
|
|
|
|
- git clone --depth=1 https://github.com/TokTok/c-toxcore ../c-toxcore
|
|
|
|
- test -f $HOME/cache/usr/lib/libtoxcore.so || (cd ../c-toxcore && cmake -B_build -H. -DCMAKE_INSTALL_PREFIX:PATH=$HOME/cache/usr && make -C_build install -j$(nproc))
|
|
|
|
# astyle
|
|
|
|
- wget -O ../astyle.tar.gz https://deb.debian.org/debian/pool/main/a/astyle/astyle_2.06.orig.tar.gz
|
|
|
|
- test -f $HOME/cache/astyle/build/gcc/bin/astyle || (tar -xf ../astyle.tar.gz -C "$HOME/cache" && make -C "$HOME/cache/astyle/build/gcc" -j2)
|
2018-02-26 08:34:38 +01:00
|
|
|
|
|
|
|
script:
|
2018-08-18 01:48:35 +02:00
|
|
|
- $HOME/cache/astyle/build/gcc/bin/astyle --options=astylerc $(find . -name "*.[ch]")
|
|
|
|
- make ENABLE_PYTHON=1 -j2
|