summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: da19ebc3027381f560e51c9a5b4b54861fa0d810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
sudo: false
services:
  - docker
language: erlang
notifications:
  email:
    - alerts@rabbitmq.com
addons:
  apt:
    packages:
      - xsltproc
otp_release:
  - "R16B03-1"
  - "17.5"
  - "18.0"
env:
  matrix:
  - GROUP=1 GROUP=2

# The checkout made by Travis is a "detached HEAD". We switch back
# to a tag or a branch. This pleases our git_rmq fetch method in
# rabbitmq-components.mk and the proper tag/branch is selected in
# dependencies too.
before_script:
  - ([ "${GROUP}" = "1" ] && ((test "$TRAVIS_TAG" && git checkout "$TRAVIS_TAG") || (test "$TRAVIS_BRANCH" && git checkout "$TRAVIS_BRANCH")) || /bin/true)

script:
  - ([ "${GROUP}" = "1" ] && travis_wait make tests)
  - ([ "${GROUP}" = "2" ] && sh ./scripts/travis_test_ocf_ra.sh)

cache:
  apt: true