diff --git a/.github/workflows/key4hep.yml b/.github/workflows/key4hep.yml index 957b23a5..b0603299 100644 --- a/.github/workflows/key4hep.yml +++ b/.github/workflows/key4hep.yml @@ -4,8 +4,8 @@ on: push: branches: - master - pull_request: - workflow_dispatch: + pull_request: + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.travis-ci.d/test.sh b/.travis-ci.d/test.sh deleted file mode 100755 index 7bfdf4fe..00000000 --- a/.travis-ci.d/test.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/bash - -ILCSOFT=/cvmfs/clicdp.cern.ch/iLCSoft/builds/current/CI_gcc -source $ILCSOFT/init_ilcsoft.sh - -cd /Package/StandardConfig/production - -## -## Test DDSim -## -echo "-- Running DDSim ${SIM_MODEL} ..." -ddsim \ - --inputFiles Examples/bbudsc_3evt/bbudsc_3evt.stdhep \ - --outputFile bbudsc_3evt_SIM_test_${SIM_MODEL}.slcio \ - --compactFile $lcgeo_DIR/ILD/compact/${SIM_MODEL}/${SIM_MODEL}.xml \ - --steeringFile ddsim_steer.py > travis-ci.log 2>&1 - -ddsimStatus=$? - -if [[ $ddsimStatus != 0 ]] -then - cat travis-ci.log - echo "-- ERROR - DDSim ${SIM_MODEL}: 3 events test failed" - exit $ddsimStatus -else - echo "-- DDSim ${SIM_MODEL}: test passing !" -fi - -# test presence of output file -if [ ! -f "bbudsc_3evt_SIM_test_${SIM_MODEL}.slcio" ] -then - ls -lthr - echo "-- ERROR - DDSim ${SIM_MODEL}: No output file found (bbudsc_3evt_SIM_test_${SIM_MODEL}.slcio)" - exit 1 -fi - - -## -## Test Marlin reconstruction -## -outputBaseName="bbudsc_3evt_RECNoBG_Test_${REC_MODEL}" - -echo "-- Running Marlin ${REC_MODEL} no bg ..." -Marlin MarlinStdReco.xml \ - --constant.lcgeo_DIR=$lcgeo_DIR \ - --constant.DetectorModel=${REC_MODEL} \ - --constant.OutputBaseName=${outputBaseName} \ - --constant.RunBeamCalReco=false \ - --global.LCIOInputFiles=bbudsc_3evt_SIM_test_${SIM_MODEL}.slcio > travis-ci.log 2>&1 - -marlinStatus=$? - -if [[ $marlinStatus != 0 ]] -then - cat travis-ci.log - echo "-- ERROR - Marlin ${REC_MODEL} no bg: 3 events test failed" - exit $marlinStatus -else - echo "-- Marlin ${REC_MODEL} no bg: test passing !" -fi - -# test presence of different output files -checkFileList="${outputBaseName}_REC.slcio \ - ${outputBaseName}_DST.slcio \ - ${outputBaseName}_PfoAnalysis.root \ - ${outputBaseName}_AIDA.root" -for checkFile in ${checkFileList} -do - if [ ! -f ${checkFile} ] - then - ls -lthr - echo "-- ERROR - Marlin ${REC_MODEL} no bg: Missing output file ${checkFile}" - exit 1 - else - echo "-- Marlin ${REC_MODEL} no bg: ${checkFile} present ..." - fi -done - diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 21952e7f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,55 +0,0 @@ -sudo: required -dist: trusty - -env: - matrix: - - SIM_MODEL=ILD_l5_v02 REC_MODEL=ILD_l5_o1_v02 - - SIM_MODEL=ILD_s5_v02 REC_MODEL=ILD_s5_o1_v02 - - SIM_MODEL=ILD_l5_v02 REC_MODEL=ILD_l5_o2_v02 - - SIM_MODEL=ILD_s5_v02 REC_MODEL=ILD_s5_o2_v02 - - SIM_MODEL=ILD_l5_v02 REC_MODEL=ILD_l5_o3_v02 - -services: - - docker - -language: cpp - -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 - -# command to run tests -script: - - docker run -it --name CI_container -e SIM_MODEL=$SIM_MODEL -e REC_MODEL=$REC_MODEL -v $PKGDIR:/Package -v /cvmfs:/cvmfs -d clicdp/cc7-lcg /bin/bash - - docker exec -it CI_container /bin/bash -c "./Package/.travis-ci.d/test.sh"; - -# Don't send e-mail notifications -notifications: - email: - on_success: never - on_failure: always