From f6874e664a944d92dd723931a77a2afc8b2e35ed Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Sat, 28 Jan 2017 13:11:02 -0500 Subject: [PATCH] Adding travis and license --- .ci/travis.sh | 9 +++++++++ .travis.yml | 33 +++++++++++++++++++++++++++++++++ LICENSE | 22 ++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100755 .ci/travis.sh create mode 100644 .travis.yml create mode 100644 LICENSE diff --git a/.ci/travis.sh b/.ci/travis.sh new file mode 100755 index 00000000..cd8ba2b8 --- /dev/null +++ b/.ci/travis.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh +set -evx +env | sort + +mkdir build || true +cd build +cmake .. +make +CTEST_OUTPUT_ON_FAILURE=1 make test diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..abf5bfe4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,33 @@ +language: cpp +sudo: false + +cache: + directories: + - ${TRAVIS_BUILD_DIR}/deps/cmake + +addons: + apt: + packages: + - g++-4.8 + - gcc-4.8 + - ubuntu-toolchain-r-test + +install: + - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi + - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps" + - CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz" + - cd "${DEPS_DIR}" + - | + if [[ ! -f "${DEPS_DIR}/cmake/bin/cmake" ]] ; then + echo "Downloading CMake" + mkdir -p cmake + travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C cmake + fi + + - export PATH="${DEPS_DIR}/cmake/bin:${PATH}" + - cd "${DEPS_DIR}" + +script: + - cd "${TRAVIS_BUILD_DIR}" + - .ci/travis.sh + diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..66a28262 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2015 Crascit + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +