Skip to content

Commit 2b7cee7

Browse files
committed
Travis CI: Update config from rabbitmq-common
1 parent 7258aa4 commit 2b7cee7

File tree

1 file changed

+33
-19
lines changed

1 file changed

+33
-19
lines changed

.travis.yml

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,54 @@
1+
# vim:sw=2:et:
2+
13
sudo: false
2-
services:
3-
- docker
44
language: erlang
55
notifications:
66
email:
77
88
addons:
99
apt:
1010
packages:
11+
- awscli
1112
- xsltproc
13+
cache:
14+
apt: true
15+
env:
16+
global:
17+
- secure: cz1CEq0NSXAbpLHjORlf/nG+9vrlJUSbtYF9fBO1OSw3E96c1Sp9sbMC2m6cqizxzZCOnsUSwXE4Tdxn73+v3d3ebl+V3PwJ2YbvOZvMURZ/SLwrycsgPZZNsefEMOQs0zLfP7ocI9UgrioN1/QwmMKSKeWxgdh+56CW9xVDgMA=
18+
- secure: kCzu0qlzKNJSUcN+Uwe65Zf2oK2T7ImxIW8BdA/7cwPihfSyRQFRJ2vzi/RSxwSDjuOlxchu8w2KuPxC55MDfq1QIbdFmqRU4Bo0mIYWAvkh25y0mBPYf2wIkt4TAu2F+hftfwjAB6zMWeAdCu3/41dnU/duoG7nROM41ie3Xio=
19+
1220
otp_release:
1321
- "R16B03-1"
14-
- "17.5"
15-
- "18.3"
16-
- "19.0"
17-
env:
18-
matrix:
19-
- GROUP=1
20-
- GROUP=2
22+
- "19.3"
23+
- "20.1"
2124

22-
# The checkout made by Travis is a "detached HEAD" and branches
23-
# information is missing. Our Erlang.mk's git_rmq fetch method relies on
24-
# it, so we need to restore it.
25-
#
26-
# We simply fetch master and, if it exists, stable branches. A branch is
27-
# created, pointing to the detached HEAD.
2825
before_script:
26+
# The checkout made by Travis is a "detached HEAD" and branches
27+
# information is missing. Our Erlang.mk's git_rmq fetch method relies
28+
# on it, so we need to restore it.
29+
#
30+
# We simply fetch master and, if it exists, stable branches. A branch
31+
# is created, pointing to the detached HEAD.
2932
- |
3033
git checkout -B "${TRAVIS_TAG:-${TRAVIS_BRANCH}}"
3134
git remote add upstream https://github.com/$TRAVIS_REPO_SLUG.git
3235
git fetch upstream stable:stable || :
3336
git fetch upstream master:master || :
3437
3538
script:
36-
- if test "${GROUP}" = '1'; then make tests; fi
37-
- if test "${GROUP}" = '2'; then sh ./scripts/travis_test_ocf_ra.sh; fi
39+
- make xref
40+
- make tests
3841

39-
cache:
40-
apt: true
42+
after_failure:
43+
- |
44+
cd "$TRAVIS_BUILD_DIR"
45+
if test -d logs && test "$AWS_ACCESS_KEY_ID" && test "$AWS_SECRET_ACCESS_KEY"; then
46+
archive_name="$(basename "$TRAVIS_REPO_SLUG")-$TRAVIS_JOB_NUMBER"
47+
48+
tar -c --transform "s/^logs/${archive_name}/" -f - logs | \
49+
xz > "${archive_name}.tar.xz"
50+
51+
aws s3 cp "${archive_name}.tar.xz" s3://server-release-pipeline/travis-ci-logs/ \
52+
--region eu-west-1 \
53+
--acl public-read
54+
fi

0 commit comments

Comments
 (0)