-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
71 lines (58 loc) · 2.97 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
dist: bionic
services:
- docker
language: cpp
env:
matrix:
- SETUPSCRIPT=/cvmfs/sw.hsf.org/key4hep/setup.sh; STANDARD=17;
before_install:
- wget --no-check-certificate 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
- sudo mkdir -p /etc/cvmfs
- echo "CVMFS_QUOTA_LIMIT='32140'" | sudo tee /etc/cvmfs/default.local > /dev/null
- echo "CVMFS_HTTP_PROXY=DIRECT" | sudo tee -a /etc/cvmfs/default.local > /dev/null
- echo "CVMFS_CACHE_BASE='/var/lib/cvmfs'" | sudo tee -a /etc/cvmfs/default.local > /dev/null
- echo "CVMFS_FORCE_SIGNING='yes'" | sudo tee -a /etc/cvmfs/default.local > /dev/null
- echo "CVMFS_REPOSITORIES='sft.cern.ch,sw.hsf.org,sw-nightlies.hsf.org,sft-nightlies.cern.ch,geant4.cern.ch'" | sudo tee -a /etc/cvmfs/default.local > /dev/null
- echo "CVMFS_SEND_INFO_HEADER=no" | sudo tee -a /etc/cvmfs/default.local > /dev/null
- cat /etc/cvmfs/default.local
- # change wrt dd4hep setup: don't manually mount cvmfs folders
- #sudo /etc/init.d/autofs stop
- sudo cvmfs_config setup
- sudo cvmfs_config probe
- sudo mkdir -p /cvmfs/sft.cern.ch
- sudo mkdir -p /cvmfs/sft-nightlies.cern.ch
- sudo mkdir -p /cvmfs/geant4.cern.ch
- sudo mkdir -p /cvmfs/sw-nightlies.hsf.org
- sudo mkdir -p /cvmfs/sw.hsf.org
- ls /cvmfs/sft.cern.ch
- ls /cvmfs/geant4.cern.ch
- ls /cvmfs/sw-nightlies.hsf.org
- ls /cvmfs/sw.hsf.org
- export CVMFS_REPOS="-v /cvmfs/sft.cern.ch:/cvmfs/sft.cern.ch"
- export CVMFS_REPOS="${CVMFS_REPOS} -v /cvmfs/sw-nightlies.hsf.org:/cvmfs/sw-nightlies.hsf.org"
- export CVMFS_REPOS="${CVMFS_REPOS} -v /cvmfs/sw.hsf.org:/cvmfs/sw.hsf.org"
- export CVMFS_REPOS="${CVMFS_REPOS} -v /cvmfs/geant4.cern.ch:/cvmfs/geant4.cern.ch"
# 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 -ti --name CI_CONTAINER -v $PKGDIR:/workspace -e SETUPSCRIPT=${SETUPSCRIPT} -e STANDARD=${STANDARD} -v /cvmfs:/cvmfs:shared -d clicdp/cc7-lcg bash
- docker exec -ti CI_CONTAINER /bin/bash -c "cd /workspace; pwd; ls; source ${SETUPSCRIPT}; source ./.fccanalyses-ci.d/compile_and_test.sh";
after_success:
# Generate the docs only if master, the travis_build_docs is true and we can use secure variables
- >-
if [[ "$TRAVIS_BRANCH" = "master" && "$TRAVIS_PULL_REQUEST" = "false" ]] ; then
cd ${PKGDIR}; docker exec -ti CI_CONTAINER /bin/bash -c "cd /workspace; source init.sh; cd build; ninja doc" && ./.fccanalyses-ci.d/generateDocumentation.sh || travis_terminate 1
fi
# Don't send e-mail notifications
notifications:
email: false