forked from achilleasa/dart_amqp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (34 loc) · 1.26 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
language: dart
dist: bionic
jobs:
include:
- stage: run tests
dart: stable
before_install:
- |
echo "
loopback_users = none
listeners.ssl.default = 5671
ssl_options.cacertfile = /certs/ca_certificate.pem
ssl_options.certfile = /certs/server_certificate.pem
ssl_options.keyfile = /certs/server_key.pem
ssl_options.verify = verify_peer
ssl_options.fail_if_no_peer_cert = false
" > /tmp/rabbitmq.conf
- docker run -d --mount type=bind,source="$(pwd)"/test/lib/mocks/certs,target="/certs" --mount type=bind,source="/tmp/rabbitmq.conf",target="/etc/rabbitmq/rabbitmq.conf" -p 5671:5671 -p 5672:5672 rabbitmq:3.7.20
- sleep 3
script:
- export PATH=$PATH:"${TRAVIS_HOME}/.pub-cache/bin"
- pub get
- pub global activate coverage
- dartfmt -n --set-exit-if-changed .
- dartanalyzer --fatal-warnings --fatal-hints --fatal-lints ./
- cd test
- AMQP_RUN_TLS_TESTS=true bash run.sh
- cd ../
after_success:
- AMQP_RUN_TLS_TESTS=true pub run test_coverage --no-badge
- dart test/upload_coverage.dart
cache:
directories:
- "${TRAVIS_HOME}/.pub-cache"