summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 9bf4bd3396ceea26c4ba7c3caf002b2d530024ed (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# vim:sw=2:et:

# Use a real VM so we can install all the packages we want.
sudo: required

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

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
  - if test "${GROUP}" = '2'; then sh ./scripts/travis_test_ocf_ra.sh; fi

cache:
  apt: true