-
Notifications
You must be signed in to change notification settings - Fork 55
/
.travis.yml
82 lines (78 loc) · 4.44 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
72
73
74
75
76
77
78
79
80
81
sudo: required
services:
- docker
jobs:
include:
- stage: build docker image
script:
- docker build -t jeffersonlab/remoll:$TRAVIS_BRANCH .
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ;
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
if [ "$TRAVIS_BRANCH" == "master" ]; then
docker tag jeffersonlab/remoll:$TRAVIS_BRANCH jeffersonlab/remoll:latest ;
docker push jeffersonlab/remoll:latest ;
docker tag jeffersonlab/remoll:latest jeffersonlab/remoll:$TRAVIS_BRANCH ;
else
docker push jeffersonlab/remoll:$TRAVIS_BRANCH ;
fi
fi
- stage: tests
script:
- for suite in load validate overlap ; do
echo "=== scripts/tests/test_geometries.sh ${suite} ===" ;
mkdir -p ${PWD}/logfiles ${PWD}/rootfiles ;
time docker run --rm -v ${PWD}/rootfiles:/jlab/remoll/rootfiles -v ${PWD}/logfiles:/jlab/remoll/logfiles -t jeffersonlab/remoll:$TRAVIS_BRANCH sh -c "
scripts/tests/test_geometries.sh ${suite}
" ;
done ;
ls -al ${PWD}/logfiles ${PWD}/rootfiles
- script:
- for suite in unit ; do
echo "=== scripts/tests/test_macros.sh ${suite} ===" ;
mkdir -p ${PWD}/logfiles ${PWD}/rootfiles ;
time docker run --rm -v ${PWD}/rootfiles:/jlab/remoll/rootfiles -v ${PWD}/logfiles:/jlab/remoll/logfiles -t jeffersonlab/remoll:$TRAVIS_BRANCH sh -c "
scripts/tests/test_macros.sh ${suite}
" ;
done ;
ls -al ${PWD}/logfiles ${PWD}/rootfiles
- script:
- for suite in commit ; do
echo "=== scripts/tests/test_macros.sh ${suite} ===" ;
mkdir -p ${PWD}/logfiles ${PWD}/rootfiles ;
time docker run --rm -v ${PWD}/rootfiles:/jlab/remoll/rootfiles -v ${PWD}/logfiles:/jlab/remoll/logfiles -t jeffersonlab/remoll:$TRAVIS_BRANCH sh -c "
scripts/tests/test_macros.sh ${suite}
" ;
done ;
ls -al ${PWD}/logfiles ${PWD}/rootfiles
- script:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
for suite in release ; do
echo "=== scripts/tests/test_macros.sh ${suite} ===" ;
mkdir -p ${PWD}/logfiles ${PWD}/rootfiles ;
time docker run --rm -v ${PWD}/rootfiles:/jlab/remoll/rootfiles -v ${PWD}/logfiles:/jlab/remoll/logfiles -t jeffersonlab/remoll:$TRAVIS_BRANCH sh -c "
scripts/tests/test_macros.sh ${suite} &&
scripts/tests/targz_macros.sh ${suite} &&
scripts/tests/watermark.sh ${suite}
" ;
done ;
ls -al ${PWD}/logfiles ${PWD}/rootfiles ;
fi
notifications:
slack:
secure: MLIeBG8iFcmiqrUknT3KId+w/ufa93ybUhm9BaYv0OhopdqF7bTW5sPY/8ZKfe7VKkw5UqICloRHkfi9BGza3IJSUi13gSDtVyN5KPb95jRUJuU5yVLrF1cTC77HuuDar1z8RXBwfGE8noVS5ztJM1Svke+U8Ilz2c5aKE9cHyvG5c8ZixKnMyWPRsPLl8gnHwgJRoPMCz1IMcs20Fhtf6K3KcpCQ2X8T7gVGUBf+GOawsmAsF40EvhDtJNh5ZJkqAzzAUFagFVixTJQ1FeCnuiyBDR9oEkrBwc+/tmxI1QvFtDmWi9VTQX0FFLmt9BtwZ4ZZuuBY8TEhAZiqjKwkaN4qduYGxGEQHdm7qFN5Ncmh347W9PPQHfRW/+e0/EF2QiwaTuzD1ElQaG8QCGS9NcM573KfdyVH9+yUbnO/D6r4CudfH3dFBZq3Mx0rQqvY8stHdl2xkjOfocz1cymXUwMbnBMcUFvPrfvEpiTr9d1+VVl36G0MtJMW0FEbb7cL6c7kwo69oCLv7+16z9phd93u0wfdisGfR4/AZgQQ3pK/0eMjHV2f1sRe2AyJzgT9TwrrKmDnvPMjYMU3lBtUuN6i9i/6exVmEMszyELh0qqgHz3Amxlx3EsfkzFodPK8DirBCE0ydEBkpWh753zJI0+G9KWHAdFTupki49Qdfw=
deploy:
provider: releases
api_key:
secure: MzvvPA8KxYjEVa8C9rNtAQbtD+mDx2Wn3Em02JKMtwv953Htnv3zRcyGPfF++sLV80RvZ8NZ8pN3WfiAPTBHatUSgWh9w+GRv0G366wxKrAS4O+9BVy96U7A0gFkaXRwXirJWo4u2lJscQ1hC2IDbI2dGAS/VF5Lt1TLjWcPUL8LPcKgF80FG8+9+BUH1cRiW8mULT36EeVAB1K+vwO6Qob5k4ef66eHjkbdpuUktDr6wrehoyGXtFiBfl+XWotvcrer/51J6wn85UqCc/A+KYrVshBH/gKCD7/w6D2akNM2/sJcFdLzv5WkaQOwplsAYuzLn1cNRUKbWay5ClCSm6rsoHGfaagW4/wXk9TxqJhcdmNZ+eeAvNXAxJIeRvb82pwANlSJ658FBw2ov75p3Y6rjvc8CUPsxBXZkw3dzOgwTdjmJI9q+aD4GuVeGiq9MdyJDgXUjxlP2qEtcLJfvvF9q5Bnzy+hoAV+A5yHg0lR0VjsUem2+CdexuHb/LJLx4YVkSrCSyEELAsfyJTCYNLaMKrWKujelqtKwXy4H/rwzaja6IBP77gkisNI82bvnrzn/QsvnueGyWSu/Z2HC2M/d6WAQAl3Et9W6kOb7MK+NAmEMOTW7tzaxjD+lq8aOiLJYndrOYaymin5GLNk3F2iqZMkhMCRC2YcstNr61w=
file_glob: true
file:
- "logfiles/remoll.*.*.log.tar.gz"
- "logfiles/remoll.*.*.analysis.log.tar.gz"
- "rootfiles/remoll.*.*.root.tar.gz"
- "rootfiles/remoll.*.*.analysis.root.tar.gz"
- "rootfiles/remoll.*.*.analysis.pdf.tar.gz"
- "rootfiles/remoll_*_*_analysis_book.pdf"
skip_cleanup: true
on:
repo: JeffersonLab/remoll
tags: true