1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 09:13:03 +01:00

Enable .travis.yml check and use non-markdown license.

This commit is contained in:
iphydf 2018-08-17 23:48:35 +00:00
parent 5b30ecf2e4
commit 4557614443
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
3 changed files with 28 additions and 23 deletions

View File

@ -1,36 +1,37 @@
---
language: python language: python
python: nightly python: nightly
addons: addons:
apt: apt:
packages: packages:
- astyle - astyle
- libalut-dev - libalut-dev
- libconfig-dev - libconfig-dev
- libnotify-dev - libnotify-dev
- libopenal-dev - libopenal-dev
- libopus-dev - libopus-dev
- libqrencode-dev - libqrencode-dev
- libvpx-dev - libvpx-dev
cache: cache:
directories: directories:
- $HOME/cache - $HOME/cache
install: install:
# Where to find libraries. # Where to find libraries.
- export LD_LIBRARY_PATH=$HOME/cache/usr/lib - export LD_LIBRARY_PATH=$HOME/cache/usr/lib
- export PKG_CONFIG_PATH=$HOME/cache/usr/lib/pkgconfig - export PKG_CONFIG_PATH=$HOME/cache/usr/lib/pkgconfig
# c-sodium # c-sodium
- git clone --depth=1 --branch=stable https://github.com/jedisct1/libsodium ../libsodium - 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)) - test -f $HOME/cache/usr/lib/libsodium.so || (cd ../libsodium && ./configure --prefix=$HOME/cache/usr && make install -j$(nproc))
# c-toxcore # c-toxcore
- git clone --depth=1 https://github.com/TokTok/c-toxcore ../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)) - 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 # astyle
- wget -O ../astyle.tar.gz https://deb.debian.org/debian/pool/main/a/astyle/astyle_2.06.orig.tar.gz - 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) - 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)
script: script:
- $HOME/cache/astyle/build/gcc/bin/astyle --options=astylerc $(find . -name "*.[ch]") - $HOME/cache/astyle/build/gcc/bin/astyle --options=astylerc $(find . -name "*.[ch]")
- make ENABLE_PYTHON=1 -j2 - make ENABLE_PYTHON=1 -j2

View File

@ -1,3 +1,7 @@
load("//tools/project:build_defs.bzl", "project")
project()
cc_binary( cc_binary(
name = "toxic", name = "toxic",
srcs = glob([ srcs = glob([

View File