Travis CI: Update config from rabbitmq-common
This commit is contained in:
parent
7ab7965343
commit
e1e5248cc8
|
|
@ -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: uA/bYdGfaL4VabgEv2qXHvr+7Uel70wACE7OoJrVTk8s6w543xWKNGgCt4dsOdwVwuo/rbDNXkZ1xMN86HYx7EJS6IxX6C5xG4BLEI2rxAsryxdrALSzjsocbxN71CwZsHO/lpwDKe/wOci0CxhLbFsc0NJEEOTEGONwF+IziKs=
|
||||
- secure: LX/VG+uGA02GpKCB3m+uqGrr7EKVAYBBxi/K3IPYY3EbJIzKRe+zlSZO46MOjgD9NTLqFPR8oM7toGFOmarWT1YJI/pDutErJlwInTxJ4R1vij/E2z1Dl8CSzKlbK/O7qjIB+MObdz+auPVczrW7oaHHKPRPNV/ZZ0n70TuIqAY=
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue