-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
54 lines (48 loc) · 1.44 KB
/
.travis.yml
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
53
# vim:sw=2:et:
sudo: false
language: erlang
notifications:
email:
recipients:
- alerts@rabbitmq.com
on_success: never
on_failure: always
addons:
apt:
sources:
- sourceline: deb https://packages.erlang-solutions.com/ubuntu trusty contrib
key_url: https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
packages:
- awscli
# Use Elixir from Erlang Solutions. The provided Elixir is
# installed with kiex but is old. We also can't use kiex to
# install a newer one because of GitHub API rate limiting.
- elixir=1.6.0-1
cache:
apt: true
otp_release:
- "19.3"
- "20.3"
install: true
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y zip xsltproc
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, v3.8.x 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 v3.7.x:v3.7.x || :
git fetch upstream master:master || :
# Make sure we use Elixir from Erlang Solutions and not kiex.
- |
echo YES | kiex implode
elixir --version
elixir --version | grep -q 'Elixir 1.6.0'
script:
- make tests