forked from R3BRootGroup/R3BRoot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (39 loc) · 1.16 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
jobs:
include:
- name: Code Formatting
os: linux
dist: xenial
language: minimal
addons:
apt:
sources:
- llvm-toolchain-xenial-8
packages:
- clang-format-8
script:
- ./travis-clang-format-check.sh clang-format-8
- name: Build and Test
os: linux
dist: xenial
language: minimal
services:
- docker
env:
- FAIRSOFT_VERSION=jun19p1
- FAIRROOT_VERSION=18.2.1
before_install:
- curl -O https://www.r3broot.gsi.de/system/files/fairroot_${FAIRROOT_VERSION}_${FAIRSOFT_VERSION}_ubuntu.tar.gz
- docker load --input fairroot_${FAIRROOT_VERSION}_${FAIRSOFT_VERSION}_ubuntu.tar.gz
before_script:
- cd $HOME && mkdir container && cd container
- ${TRAVIS_BUILD_DIR}/travis-generate-dockerfile.sh | tee Dockerfile
- docker build -t r3broot:${TRAVIS_COMMIT} .
- cd $HOME
script:
- docker run -v $HOME/build/R3BRootGroup/R3BRoot:/root/R3BRoot r3broot:${TRAVIS_COMMIT}
notifications:
email:
recipients:
on_success: always
on_failure: always