forked from rabbitmq/rabbitmq-amqp1.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (63 loc) · 2.39 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 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
- sourceline: deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main
key_url: https://packages.microsoft.com/keys/microsoft.asc
packages:
- awscli
- dotnet-sdk-2.0.0
# 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.8.1-1
- maven
cache:
apt: true
env:
global:
- secure: hsWxOPcSAXQU9CKQSh829aPLt7oFim8lYVPMSfR0GH0JsnxWgayk2w3tyAblOJqpXTKPqYb+TfyeTOc+QQM8pcEtvi5jtr+GAqovI3UkXpR08J5ImVZVf3sfD4s92uoRjw0u8ift/qZxpDLpdDCKJibe3hRMxlvo5LQ5kCkNGFs=
- secure: D2xypqCxIxyhX2/PtXhiWa8kZF9itwhvDK3mxEI+67AM8zJBtrIlIcHifnFMM1RDjFzuBWq5t0BAbyuAGUw0EcjOnc3xW01N/ZG4DaHgXjurDSY0rCfkYLHltFjxJTbx2bH6nmgjdKYRb4W9hQJVcB7vtd1g7kVlzYkNevz4Sfk=
otp_release:
- "21.3"
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.8.x:v3.8.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.8.1'
script:
- make xref
- make tests
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