From 4d167f97240705fb0611b61cc30475c3ba5adcf0 Mon Sep 17 00:00:00 2001 From: rchikhi Date: Wed, 31 Jan 2018 09:25:18 +0100 Subject: [PATCH] travis attempt --- .travis.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..68bc003 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,45 @@ +language: cpp +os: +- linux +- osx +compiler: +- clang +- gcc +addons: + apt: + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.7 + - george-edison55-precise-backports #for cmake3 + packages: + - g++-4.8 + - clang-3.7 + - cmake + - cmake-data +install: + - if [ "`echo $CXX`" == "g++" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then export CXX=g++-4.8; fi + - if [ "`echo $CXX`" == "clang++" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then export CXX=clang++-3.7; fi +matrix: + exclude: + - os: osx + compiler: gcc +script: + - mkdir tools/tigops/build + - cd tools/tigops/build + - cmake .. && make + - cd .. +before_deploy: + - export RELEASE_FILE=$(ls tools/tigops/build/tigops) + - ls + - ls build + - echo "Deploying $RELEASE_FILE to GitHub" +deploy: + provider: releases + api_key: + secure: hQsQR/iRTVbDDJlyJpBln98CT+Mm9GHy/H/gYvLwhoh73f+OmUEreB2HS/KsWp3TTgZeI/ANRBpY11I4Xrai1sntqjXO2LG79pEIoL62AcCBEQJ1RsnkGg9s10qFKzQqImuPDzincnVIrSr92L8kcXBuErU2YK7/Ss5ABzxRN+E= + file: "${RELEASE_FILE}" + skip_cleanup: true + on: + repo: GATB/tigops + tags: true +