Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Travis CI: Import changes from rabbitmq-auth-backend-amqp
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbbell committed Dec 12, 2016
1 parent 80bfdb8 commit cd06f90
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# vim:sw=2:et:

# Use Ubuntu Trusty to have access to Elixir.
dist: trusty
group: beta
# Use a real VM so we can install all the packages we want.
sudo: required

language: erlang
Expand All @@ -11,24 +9,34 @@ notifications:
- alerts@rabbitmq.com
addons:
apt:
sources:
- sourceline: deb https://packages.erlang-solutions.com/ubuntu precise contrib
key_url: https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
packages:
# 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
otp_release:
- "18.3"
- "19.0"

# 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 || :
# 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

script: make tests

Expand Down

0 comments on commit cd06f90

Please sign in to comment.