forked from CTPPS/ctpps-offline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (27 loc) · 1020 Bytes
/
.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
sudo: required
dist: trusty
# travis-ci runs by default on ancient Ubuntu 12.04 (precise), with support until 04.2017
# following options will give us Ubuntu 14.04 (trusty)
services:
- docker
# matrix build
env:
- DOCKER_IMAGE=grzanka/cmssw_810:pre5 CMSSW_VER=CMSSW_8_1_0_pre5
- DOCKER_IMAGE=grzanka/cmssw_810:pre4 CMSSW_VER=CMSSW_8_1_0_pre4
# here we can define the sub-builds which can fail (and won't mark whole build as failed)
#matrix:
# allow_failures:
# - env: DOCKER_IMAGE=grzanka/cmssw_810:pre5 CMSSW_VER=CMSSW_8_1_0_pre5
language: bash
services:
- docker
before_install:
- docker pull $DOCKER_IMAGE
- curl -J -o sample.root "https://cernbox.cern.ch/index.php/s/WUQIFkrR8auOHDn/download"
- md5sum sample.root
script:
- docker run --rm -v `pwd`:/home/cmsbuild/src -it $DOCKER_IMAGE /bin/sh -c "cp -r src/* $CMSSW_VER/src && chown -R cmsbuild:cmsbuild $CMSSW_VER && cd $CMSSW_VER/src && bash test.sh"
notifications:
email: