rabbitmq-server/deps/amqp_client/.travis.yml

62 lines
1.8 KiB
YAML
Raw Normal View History

# vim:sw=2:et:
2017-06-20 00:12:14 +08:00
os: linux
dist: xenial
language: elixir
notifications:
email:
recipients:
- alerts@rabbitmq.com
on_success: never
on_failure: always
addons:
apt:
packages:
- awscli
cache:
apt: true
env:
global:
- secure: YQ5QmZHQC3dBIk0vfHlQxHejaqCLq6GbuinOgLieS/Vwrmt51zbg+Wf/tG5yNTaYHHBev/D2e1u2nidZPQ6Xg4InFuknr2dYyPeJ+6A6194aWvdOkB/O3Ii2+m3dafZxsmYj9SZPYIUcwyzXQHwyaL/zOUJC9MGQzYv1L1FAQnQ=
- secure: Q1Du4xVNhvNBSv7vYzcF/9HB7R85nhwIpjZogfbZM2Kr6oTOeT8lyCEoiDjbiXkxZdWQa2YVGsjcvz8Q4rDvt8xu1gUG8j/bV3QWjB+0iWq2xQotnKvXW/toiDKBYyoIj9RUrQR5brwU95R1GAClLqxMdjY+/LijzLKqlQQo1L4=
2017-06-20 00:12:14 +08:00
# $base_rmq_ref is used by rabbitmq-components.mk to select the
# appropriate branch for dependencies.
- base_rmq_ref=master
elixir:
- '1.10'
otp_release:
- '22.3'
- '23.0'
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
Switch testsuite to common_test All tests were moved from `test_util.erl` and `negative_test_util.erl` to `unit_SUITE.erl` and `system_SUITE.erl`. `unit_SUITE.erl` has only unit tests and doesn't need a running broker. `system_SUITE.erl` has system integration tests and takes care of starting and setting up a broker itself. `make tests` automatically runs common_test tests. All our specific Makefile targets are not used anymore. The new testsuite just needs targets to start/stop a node and set/clear resource alarms. In `system_SUITE.erl`, almost all tests are executed with direct and network connections. Therefore, they are listed in two groups: o direct_connection_tests o network_connection_tests To run the whole testsuite: make tests To run only one group: make ct-system t=network_connection_tests To run one test in a group: make ct-system t=network_connection_tests:basic_consume We also use common_test to handle the tests which are repeated 100 times. The started node stores all its data in a subdirectory of the `logs` directory and not in `/tmp`. This allows to keep the database and log files for each run of the testsuite. erlang.mk is updated at the same time: we don't need to disable any Erlang.mk plugins anymore. Many helper functions will be moved to rabbitmq-common or rabbitmq-test, once we are happy with them, so they can be used in other testsuites. V2: Move helper functions to rabbit_ct_helpers.erl. V3: Get rid of last eunit bits. V4: Improve executed command quoting. V5: Use rabbitmq-common to create TLS certificates and drop dependency to rabbitmq-test. Fixes #39.
2016-03-08 20:23:03 +08:00
script:
# $current_rmq_ref is also used by rabbitmq-components.mk to select
# the appropriate branch for dependencies.
- make check-rabbitmq-components.mk
current_rmq_ref="${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}"
- make xref
current_rmq_ref="${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}"
- make tests
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