-
Notifications
You must be signed in to change notification settings - Fork 85
/
.travis.yml
28 lines (28 loc) · 1.09 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
language: objective-c
osx_image: xcode12.2
xcode_project: RMQClient.xcodeproj
xcode_scheme: "RMQClient"
before_install:
- brew update
- brew install rabbitmq
- cp .travis/etc/* /usr/local/etc/rabbitmq/
- cp TestCertificates/* /usr/local/etc/rabbitmq/
- /usr/local/sbin/rabbitmq-plugins enable --offline rabbitmq_auth_mechanism_ssl
- brew services start rabbitmq
before_script:
- make bootstrap
- until sudo lsof -i:5672; do echo "Waiting for RabbitMQ to start..."; sleep 1; done
- make before_build
- make set_up_test_vhosts
- make set_up_test_users
env:
- TARGET=tests_ios SCHEME="RMQClient" TRAVIS_XCODE_SDK=iphonesimulator14.2 iOS_VERSION=14.0
- TARGET=tests_macos SCHEME="RMQClient" TRAVIS_XCODE_SDK=macosx11.0
- TARGET=tests_ios SCHEME="RMQClient with TLS tests" TRAVIS_XCODE_SDK=iphonesimulator14.2 iOS_VERSION=14.0
- TARGET=tests_macos SCHEME="RMQClient with TLS tests" TRAVIS_XCODE_SDK=macosx11.0
script: travis_retry make $TARGET SCHEME=$SCHEME iOS_VERSION=$iOS_VERSION
after_failure:
- cat /usr/local/var/log/rabbitmq/rabbit@localhost.log
cache:
directories:
- Carthage