Skip to content

Commit d94b420

Browse files
committed
Travis CI: Update config from rabbitmq-common
1 parent 164f785 commit d94b420

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

.travis.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# vim:sw=2:et:
22

3+
os: linux
34
dist: xenial
4-
sudo: false
5-
language: erlang
5+
language: elixir
66
notifications:
77
email:
88
recipients:
@@ -20,26 +20,31 @@ env:
2020
- secure: E4FIneR14YxnWbNNgFY48+Z8YpnwWcvIR0nD1Mo06WKXaq05UfQNQ7SZCjI3kKCNJGMhac12DFRhln+mQZ+T92MQ7IeU3ugpV5RSm+JqIwwIKzVM3+bjCQnFoL24OD4E+GjhJQWYQmPyM7l4OPluMr2N8BtANItgzX3AvljvlSc=
2121
- secure: L1t0CHGR4RzOXwtkpM6feRKax95rszScBLqzjstEiMPkhjTsYTlAecnNxx6lTrGMnk5hQoi4PtbhmyZOX0siHTngTogoA/Nyn8etYzicU5ZO+qmBQOYpegz51lEu70ewXgkhEHzk9DtEPxfYviH9WiILrdUVRXXgZpoXq13p1QA=
2222

23+
# $base_rmq_ref is used by rabbitmq-components.mk to select the
24+
# appropriate branch for dependencies.
25+
- base_rmq_ref=v3.8.x
26+
27+
elixir:
28+
- '1.9'
2329
otp_release:
24-
- "21.3"
25-
26-
before_script:
27-
- elixir --version
28-
# The checkout made by Travis is a "detached HEAD" and branches
29-
# information is missing. Our Erlang.mk's git_rmq fetch method relies
30-
# on it, so we need to restore it.
31-
#
32-
# We simply fetch master and, if it exists, v3.8.x branches. A branch
33-
# is created, pointing to the detached HEAD.
34-
- |
35-
git checkout -B "${TRAVIS_TAG:-${TRAVIS_BRANCH}}"
36-
git remote add upstream https://github.com/$TRAVIS_REPO_SLUG.git
37-
git fetch upstream v3.8.x:v3.8.x || :
38-
git fetch upstream master:master || :
30+
- '21.3'
31+
- '22.2'
32+
33+
install:
34+
# This project being an Erlang one (we just set language to Elixir
35+
# to ensure it is installed), we don't want Travis to run mix(1)
36+
# automatically as it will break.
37+
skip
3938

4039
script:
40+
# $current_rmq_ref is also used by rabbitmq-components.mk to select
41+
# the appropriate branch for dependencies.
42+
- make check-rabbitmq-components.mk
43+
current_rmq_ref="${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}"
4144
- make xref
45+
current_rmq_ref="${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}"
4246
- make ct-fast
47+
current_rmq_ref="${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}"
4348

4449
after_failure:
4550
- |

0 commit comments

Comments
 (0)