blob: 3b85c106c3751d4d2a373cc622d98c41cc8c8eba (
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
53
54
55
56
57
58
59
60
61
62
|
--- .travis.yml.orig 2020-10-12 17:29:44.096296000 +0200
+++ .travis.yml 2020-10-12 17:26:40.450974000 +0200
@@ -22,38 +22,36 @@
# appropriate branch for dependencies.
- base_rmq_ref=master
-elixir:
- - '1.10'
-otp_release:
- - '22.3'
- - '23.1'
+jobs:
+ include:
+ - elixir: '1.10'
+ otp_release: '22.3'
+ - elixir: '1.10'
+ otp_release: '23.1'
install:
# This project being an Erlang one (we just set language to Elixir
# to ensure it is installed), we don't want Travis to run mix(1)
# automatically as it will break.
- skip
+ - mix local.rebar --force
script:
# $current_rmq_ref is also used by rabbitmq-components.mk to select
# the appropriate branch for dependencies.
- - make check-rabbitmq-components.mk
+ - make
+ DEPS_DIR=$PWD/..
current_rmq_ref="${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}"
- - make xref
- current_rmq_ref="${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}"
+ - |
+ git clone \
+ --branch "$base_rmq_ref" \
+ --depth 1 \
+ https://github.com/rabbitmq/rabbitmq-server-release.git \
+ ../rabbitmq_server_release
+ make start-background-broker -C ../rabbitmq_server_release \
+ DEPS_DIR=$PWD/.. \
+ PLUGINS='rabbitmq_federation rabbitmq_stomp' \
+ PROJECT_VERSION=3.9.0 \
+ current_rmq_ref="${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}"
- make tests
+ DEPS_DIR=$PWD/..
current_rmq_ref="${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}"
-
-after_failure:
- - |
- cd "$TRAVIS_BUILD_DIR"
- if test -d logs && test "$AWS_ACCESS_KEY_ID" && test "$AWS_SECRET_ACCESS_KEY"; then
- archive_name="$(basename "$TRAVIS_REPO_SLUG")-$TRAVIS_JOB_NUMBER"
-
- tar -c --transform "s/^logs/${archive_name}/" -f - logs | \
- xz > "${archive_name}.tar.xz"
-
- aws s3 cp "${archive_name}.tar.xz" s3://server-release-pipeline/travis-ci-logs/ \
- --region eu-west-1 \
- --acl public-read
- fi
|