Travis CI: Update config from rabbitmq-common

This commit is contained in:
Jean-Sébastien Pédron 2017-11-07 14:31:41 +01:00
parent bd453c8d7a
commit abe6cd0aed
1 changed files with 34 additions and 12 deletions

View File

@ -1,3 +1,5 @@
# vim:sw=2:et:
sudo: false
language: erlang
notifications:
@ -6,27 +8,47 @@ notifications:
addons:
apt:
packages:
- awscli
- xsltproc
cache:
apt: true
env:
global:
- secure: LjJq8syYnh8clncB3T5R6kMjs3QkgfmLjB+Euq8CmmljrARVlyJYdzExEqqjRLcTQ3H4whqfXE4wFmwjoWqhslAVul8InAb2mk0Ymzt1Gfc1FHa+Y0EsQywfW33vhXUJrLd/AGQhvtQWUAJNm5CQ5SlB2EfnsjmlenvRhF/jO0o=
- secure: GOK57ussJ67O5uu8GgyGo1Idm+SvDd/6FYaGqUpVuUxvJcVyE8fYEyo3NMBGT6iXGy6oJ9pDuA99RbFu5QfinVD6yfB1juGzaSX0+23JiZPJJUiw+4VT50EiWyM+B2L13E+n73zCS7DCDWE6saW0c9L2dL2oAwVdq+gDqBYVFzM=
otp_release:
- "R16B03-1"
- "17.5"
- "18.0"
- "19.0"
- "19.3"
- "20.1"
# The checkout made by Travis is a "detached HEAD" and branches
# information is missing. Our Erlang.mk's git_rmq fetch method relies on
# it, so we need to restore it.
#
# We simply fetch master and, if it exists, stable branches. A branch is
# created, pointing to the detached HEAD.
before_script:
# The checkout made by Travis is a "detached HEAD" and branches
# information is missing. Our Erlang.mk's git_rmq fetch method relies
# on it, so we need to restore it.
#
# We simply fetch master and, if it exists, stable branches. A branch
# is created, pointing to the detached HEAD.
- |
git checkout -B "${TRAVIS_TAG:-${TRAVIS_BRANCH}}"
git remote add upstream https://github.com/$TRAVIS_REPO_SLUG.git
git fetch upstream stable:stable || :
git fetch upstream master:master || :
script: make tests
script:
- make xref
- make tests
cache:
apt: true
after_failure:
- |
cd "$TRAVIS_BUILD_DIR"
if test -d logs && test "$AWS_ACCESS_KEY_ID" && test "$AWS_SECRET_ACCESS_KEY"; then
archive_name="$(basename "$TRAVIS_REPO_SLUG")-$TRAVIS_JOB_NUMBER"
tar -c --transform "s/^logs/${archive_name}/" -f - logs | \
xz > "${archive_name}.tar.xz"
aws s3 cp "${archive_name}.tar.xz" s3://server-release-pipeline/travis-ci-logs/ \
--region eu-west-1 \
--acl public-read
fi