Skip to content

Commit df25c13

Browse files
committed
Travis CI: Update config from rabbitmq-common
1 parent a7bb375 commit df25c13

File tree

2 files changed

+39
-300
lines changed

2 files changed

+39
-300
lines changed

.travis.sh

Lines changed: 0 additions & 258 deletions
This file was deleted.

.travis.yml

Lines changed: 39 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,31 @@
11
# vim:sw=2:et:
2-
sudo: false
3-
4-
language: generic
52

3+
sudo: false
4+
language: erlang
5+
notifications:
6+
email:
7+
68
addons:
79
apt:
10+
sources:
11+
- sourceline: deb https://packages.erlang-solutions.com/ubuntu trusty contrib
12+
key_url: https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
813
packages:
9-
- unixodbc
10-
- unixodbc-dev
11-
- libwxgtk2.8-dev
14+
- awscli
15+
# Use Elixir from Erlang Solutions. The provided Elixir is
16+
# installed with kiex but is old. We also can't use kiex to
17+
# install a newer one because of GitHub API rate limiting.
18+
- elixir=1.4.5-1
19+
cache:
20+
apt: true
21+
env:
22+
global:
23+
- secure: E4FIneR14YxnWbNNgFY48+Z8YpnwWcvIR0nD1Mo06WKXaq05UfQNQ7SZCjI3kKCNJGMhac12DFRhln+mQZ+T92MQ7IeU3ugpV5RSm+JqIwwIKzVM3+bjCQnFoL24OD4E+GjhJQWYQmPyM7l4OPluMr2N8BtANItgzX3AvljvlSc=
24+
- secure: L1t0CHGR4RzOXwtkpM6feRKax95rszScBLqzjstEiMPkhjTsYTlAecnNxx6lTrGMnk5hQoi4PtbhmyZOX0siHTngTogoA/Nyn8etYzicU5ZO+qmBQOYpegz51lEu70ewXgkhEHzk9DtEPxfYviH9WiILrdUVRXXgZpoXq13p1QA=
1225

1326
otp_release:
27+
- "19.3"
1428
- "20.1"
15-
16-
services:
17-
- docker
18-
19-
env:
20-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=0
21-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=1
22-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=2
23-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=3
24-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=4
25-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=5
26-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=6
27-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=7
28-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=8
29-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=9
30-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=10
31-
- OTP_TAG_NAME=OTP-20.1 TEST_SUITE=11
3229

3330
before_script:
3431
# The checkout made by Travis is a "detached HEAD" and branches
@@ -42,26 +39,26 @@ before_script:
4239
git remote add upstream https://github.com/$TRAVIS_REPO_SLUG.git
4340
git fetch upstream stable:stable || :
4441
git fetch upstream master:master || :
45-
# Install kerl; build gmake 4.2.1 and OTP
46-
- $TRAVIS_BUILD_DIR/.travis.sh $OTP_TAG_NAME
47-
- export PATH="$HOME/bin:$HOME/gmake/bin:$PATH"
48-
- source "$HOME/otp/$OTP_TAG_NAME/activate"
49-
- kerl active
50-
- test -s "$HOME/.kiex/scripts/kiex" && source "$HOME/.kiex/scripts/kiex"
51-
- test -x "$HOME/.kiex/elixirs/elixir-1.4.5/bin/elixir" || kiex install 1.4.5
52-
- kiex use 1.4.5 --default
53-
- mix local.hex --force
54-
- make --version
42+
# Make sure we use Elixir from Erlang Solutions and not kiex.
43+
- |
44+
echo YES | kiex implode
45+
elixir --version
46+
elixir --version | grep -q 'Elixir 1.4.5'
5547
5648
script:
57-
- $TRAVIS_BUILD_DIR/.travis.sh tests $TEST_SUITE
49+
- make xref
50+
- make ct-fast
5851

59-
before_cache:
60-
- $TRAVIS_BUILD_DIR/.travis.sh kiex_cleanup
52+
after_failure:
53+
- |
54+
cd "$TRAVIS_BUILD_DIR"
55+
if test -d logs && test "$AWS_ACCESS_KEY_ID" && test "$AWS_SECRET_ACCESS_KEY"; then
56+
archive_name="$(basename "$TRAVIS_REPO_SLUG")-$TRAVIS_JOB_NUMBER"
6157
62-
cache:
63-
directories:
64-
- "$HOME/otp"
65-
- "$HOME/.kiex"
66-
- "$HOME/gmake"
67-
- "$HOME/bin"
58+
tar -c --transform "s/^logs/${archive_name}/" -f - logs | \
59+
xz > "${archive_name}.tar.xz"
60+
61+
aws s3 cp "${archive_name}.tar.xz" s3://server-release-pipeline/travis-ci-logs/ \
62+
--region eu-west-1 \
63+
--acl public-read
64+
fi

0 commit comments

Comments
 (0)