From e76294caef8355c91ce86fa5d4ebfd6ab5edba4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 8 Nov 2017 12:27:26 +0100 Subject: [PATCH] Travis CI: Update config from rabbitmq-common --- deps/rabbitmq_tracing/.travis.yml | 46 +++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/deps/rabbitmq_tracing/.travis.yml b/deps/rabbitmq_tracing/.travis.yml index 3d3484d8c5..75e51e2bd9 100644 --- a/deps/rabbitmq_tracing/.travis.yml +++ b/deps/rabbitmq_tracing/.travis.yml @@ -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: csVx9HqSOGIMF+TfLqsqVo/sQoCZ6nvKtMxwUyX7m5A37kmVvAbKhaFOU8LgvHGNLFn5oaQ4paVpSgKGO2wvlsTZaeUxoDbTIrnKXb8Cw2fG11DdDIlqVhMlAhSnQnz4oft87AFyXnRvICzz0ll37mwAW6EV8/8CgJXxEnWORnc= + - secure: LSal26q2V/klGpqK3ho38dlFQKdcyt43/dRESHEzZ0N7BDL7QRLMddPUHOVKDyKmVuiHvRfIhqgIB0gaa97XsNjOwVesx5zN+PjH9f+/3Tg0mxLungyIqiPS/KvrY1FXtez/QZzylzMxPJTqo5NUYBEATUlGX/PZ1EtR6ocpyvI= + 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