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