diff --git a/.travis-ci.d/compile_and_test.sh b/.travis-ci.d/compile_and_test.sh deleted file mode 100755 index 1f4971e..0000000 --- a/.travis-ci.d/compile_and_test.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -ILCSOFT=/cvmfs/clicdp.cern.ch/iLCSoft/builds/current/CI_${COMPILER} -source $ILCSOFT/init_ilcsoft.sh - -cd /Package -mkdir build -cd build -cmake -GNinja -C $ILCSOFT/ILCSoft.cmake -DCMAKE_CXX_FLAGS="-fdiagnostics-color=always" .. && \ -ninja && \ -ninja install && \ -ctest --output-on-failure diff --git a/.travis-ci.d/coverity_scan.sh b/.travis-ci.d/coverity_scan.sh deleted file mode 100755 index 8ee8bf1..0000000 --- a/.travis-ci.d/coverity_scan.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -ILCSOFT=/cvmfs/clicdp.cern.ch/iLCSoft/builds/current/CI_${COMPILER} -source $ILCSOFT/init_ilcsoft.sh - -cd /Package -mkdir build -cd build -cmake -C $ILCSOFT/ILCSoft.cmake -DCMAKE_CXX_FLAGS="-fdiagnostics-color=always" .. && \ -export PATH=/Package/cov-analysis-linux64/bin:$PATH && \ -cov-build --dir cov-int make -j2 && \ -tar czvf myproject.tgz cov-int diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9e8c27b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,66 +0,0 @@ -sudo: required -dist: trusty - -services: - - docker - -language: cpp - -env: - matrix: - - COMPILER=gcc - - COMPILER=llvm - - -before_install: - - wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest_all.deb - - sudo dpkg -i cvmfs-release-latest_all.deb - - sudo apt-get update - - sudo apt-get install cvmfs cvmfs-config-default - - rm -f cvmfs-release-latest_all.deb - - wget https://lcd-data.web.cern.ch/lcd-data/CernVM/default.local - - sudo mkdir -p /etc/cvmfs - - sudo mv default.local /etc/cvmfs/default.local - - sudo /etc/init.d/autofs stop - - sudo cvmfs_config setup - - sudo mkdir -p /cvmfs/clicdp.cern.ch - - sudo mkdir -p /cvmfs/geant4.cern.ch - - sudo mkdir -p /cvmfs/sft.cern.ch - - sudo mount -t cvmfs clicdp.cern.ch /cvmfs/clicdp.cern.ch - - sudo mount -t cvmfs geant4.cern.ch /cvmfs/geant4.cern.ch - - sudo mount -t cvmfs sft.cern.ch /cvmfs/sft.cern.ch - - ls /cvmfs/clicdp.cern.ch - - ls /cvmfs/geant4.cern.ch - - ls /cvmfs/sft.cern.ch/lcg - -# command to install dependencies -install: - - shopt -s extglob dotglob - - mkdir Package - - mv !(Package) Package - - shopt -u dotglob - - export PKGDIR=${PWD}/Package - - export description=`date` - - export COVERITY_REPO=`echo ${TRAVIS_REPO_SLUG} | sed 's/\//\%2F/g'` - - if [[ "${TRAVIS_EVENT_TYPE}" == "cron" && "${COMPILER}" == "gcc" ]]; - then wget https://scan.coverity.com/download/linux64 --post-data "token=${COVERITY_SCAN_TOKEN}&project=${COVERITY_REPO}" -O Package/coverity_tool.tgz; cd Package; mkdir cov-analysis-linux64; tar -xf coverity_tool.tgz -C cov-analysis-linux64 --strip-components=1; - fi - -# command to run tests -script: - - docker run -it --name CI_container -v $PKGDIR:/Package -e COMPILER=$COMPILER -v /cvmfs:/cvmfs -d clicdp/cc7-lcg /bin/bash - - if [[ "${TRAVIS_EVENT_TYPE}" == "cron" && "${COMPILER}" == "gcc" ]]; - then docker exec -it CI_container /bin/bash -c "./Package/.travis-ci.d/coverity_scan.sh"; - elif [[ "${TRAVIS_EVENT_TYPE}" == "cron" && "${COMPILER}" == "llvm" ]]; - then echo "Running the weekly Coverity Scan, no LLVM/Clang build this time"; - else docker exec -it CI_container /bin/bash -c "./Package/.travis-ci.d/compile_and_test.sh"; - fi - - if [[ "${TRAVIS_EVENT_TYPE}" == "cron" && "${COMPILER}" == "gcc" ]]; - then curl --form token=${COVERITY_SCAN_TOKEN} --form email=noreply@cern.ch --form file=@${PKGDIR}/build/myproject.tgz --form version="master" --form description="${description}" https://scan.coverity.com/builds?project=${COVERITY_REPO} ; - fi - -# Don't send e-mail notifications -notifications: - email: - on_success: never - on_failure: always