Travis CI: Update config from rabbitmq-common

This commit is contained in:
Jean-Sébastien Pédron 2017-11-08 12:28:00 +01:00
parent c15821c1fe
commit dbf3a9a225
1 changed files with 35 additions and 16 deletions

View File

@ -1,8 +1,6 @@
# vim:sw=2:et:
# Use a real VM so we can install all the packages we want.
sudo: required
sudo: false
language: erlang
notifications:
email:
@ -10,18 +8,24 @@ notifications:
addons:
apt:
sources:
- sourceline: deb https://packages.erlang-solutions.com/ubuntu precise contrib
- sourceline: deb https://packages.erlang-solutions.com/ubuntu trusty contrib
key_url: https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
packages:
- awscli
# Use Elixir from Erlang Solutions. The provided Elixir is
# installed with kiex but is old. By using an prebuilt Debian
# package, we save the compilation time.
- elixir
- xsltproc
# installed with kiex but is old. We also can't use kiex to
# install a newer one because of GitHub API rate limiting.
- elixir=1.4.5-1
cache:
apt: true
env:
global:
- secure: W790qqYNuP5r7OLnElmGMJhaa+0aKs8c5SBE4GUrCtzM/TVhSA636yu8AC40TU/qzBgISObx3fLY7mVK45bFetFiF4YTVlwld50CXjAZ0XLpmv1TcqU4hIwQ7U5OD76UAiYFckbIPxkAZ37sfZj2jcKBNR6obMMUxHd+eXm/XCE=
- secure: CDccdPeAR5bWYcKUzFZwSaUfPmdxBMZwfmArCFmxRntTyZ/ZvZLsVkPUrokLRwMtZSb9sdF2BhoJrfPQqHp8zqxFEYaRQIScBbiSkKHIcC6PVHvLwizQV5PfGnjmHcQ/b/Xdq/XtujYQkoRwYZZvcZ/kBOcRT6xjSBctMrCAF3c=
otp_release:
- "19.2"
- "19.3"
- "20.0"
- "20.1"
before_script:
# The checkout made by Travis is a "detached HEAD" and branches
@ -35,11 +39,26 @@ before_script:
git remote add upstream https://github.com/$TRAVIS_REPO_SLUG.git
git fetch upstream stable:stable || :
git fetch upstream master:master || :
# Remove all kiex installations. This makes sure that the Erlang
# Solutions one is picked: it's after the kiex installations in $PATH.
- echo YES | kiex implode
# Make sure we use Elixir from Erlang Solutions and not kiex.
- |
echo YES | kiex implode
elixir --version
elixir --version | grep -q 'Elixir 1.4.5'
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