From 455761444340cc02f3b7e67210f0c3e0597ca2e6 Mon Sep 17 00:00:00 2001 From: iphydf Date: Fri, 17 Aug 2018 23:48:35 +0000 Subject: [PATCH] Enable .travis.yml check and use non-markdown license. --- .travis.yml | 47 +++++++++++++++++++++++----------------------- BUILD.bazel | 4 ++++ COPYING => LICENSE | 0 3 files changed, 28 insertions(+), 23 deletions(-) rename COPYING => LICENSE (100%) diff --git a/.travis.yml b/.travis.yml index ca5487d..ffe3fa6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,36 +1,37 @@ +--- language: python python: nightly addons: apt: packages: - - astyle - - libalut-dev - - libconfig-dev - - libnotify-dev - - libopenal-dev - - libopus-dev - - libqrencode-dev - - libvpx-dev + - astyle + - libalut-dev + - libconfig-dev + - libnotify-dev + - libopenal-dev + - libopus-dev + - libqrencode-dev + - libvpx-dev cache: directories: - - $HOME/cache + - $HOME/cache install: -# 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) + # 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) script: -- $HOME/cache/astyle/build/gcc/bin/astyle --options=astylerc $(find . -name "*.[ch]") -- make ENABLE_PYTHON=1 -j2 + - $HOME/cache/astyle/build/gcc/bin/astyle --options=astylerc $(find . -name "*.[ch]") + - make ENABLE_PYTHON=1 -j2 diff --git a/BUILD.bazel b/BUILD.bazel index ea12a37..66eb6f8 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,3 +1,7 @@ +load("//tools/project:build_defs.bzl", "project") + +project() + cc_binary( name = "toxic", srcs = glob([ diff --git a/COPYING b/LICENSE similarity index 100% rename from COPYING rename to LICENSE