summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2016-12-12 12:44:06 +0100
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2016-12-12 12:44:06 +0100
commit1220bdb2eca2d077e5ce12252c6b5d03c7ae8bca (patch)
tree1a94a5dfe15f6c4e5be39f12bc85fb1b0cc0c8d5
parent59fcbd90cd48d89ab69231cef2a61ea8f81f02e3 (diff)
downloadrabbitmq-server-git-1220bdb2eca2d077e5ce12252c6b5d03c7ae8bca.tar.gz
Travis CI: Import changes from rabbitmq-auth-backend-amqp
-rw-r--r--.travis.yml30
1 files changed, 19 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml
index b6197398f0..9bf4bd3396 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,40 +1,48 @@
# 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
-services:
- - docker
language: erlang
notifications:
email:
- 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"
+services:
+ - docker
env:
matrix:
- GROUP=1
- GROUP=2
-# 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:
- if test "${GROUP}" = '1'; then make tests; fi