forked from ReactiveX/RxSwift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (60 loc) · 1.74 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
language: objective-c
os:
- osx
language: generic
sudo: required
dist: xenial
osx_image: xcode11.3
env:
- DANGER=1
- TEST=iOS
- TEST=Unix
- TEST=watchOS
- TEST=tvOS
- TEST=iOS-Example
- TEST=SPM
- BUILD="TARGET=RxSwift SWIFT_VERSION=5.1 ./scripts/validate-podspec.sh"
- BUILD="TARGET=RxCocoa SWIFT_VERSION=5.1 ./scripts/validate-podspec.sh"
- BUILD="TARGET=RxRelay SWIFT_VERSION=5.1 ./scripts/validate-podspec.sh"
- BUILD="TARGET=RxBlocking SWIFT_VERSION=5.1 ./scripts/validate-podspec.sh"
- BUILD="TARGET=RxTest SWIFT_VERSION=5.1 ./scripts/validate-podspec.sh"
matrix:
exclude:
- os: osx
env: DANGER=1
include:
- osx_image:
os: linux
env: TEST=Unix swift=5.1
notifications:
slack: rxswift:3ykt2Z61f8GkdvhCZTYPduOL
email: false
install:
- if [[ `uname` == "Linux" ]] ; then
curl "https://swift.org/builds/swift-${swift}-release/ubuntu1604/swift-${swift}-RELEASE/swift-${swift}-RELEASE-ubuntu16.04.tar.gz" > /tmp/swift.tar.gz;
tar -xzf /tmp/swift.tar.gz -C /tmp;
export PATH="${PATH}:/tmp/swift-${swift}-RELEASE-ubuntu16.04/usr/bin";
swift -version;
fi
script:
- if [[ `uname` == "Unix" ]] ; then
brew install swiftlint || true;
fi
-
if [[ ! -z "${BUILD}" ]] ; then
eval "TRAVIS=1 ${BUILD}";
else
if [[ "${DANGER}" -eq 1 ]] ; then
bundle install --path vendor/bundle;
bundle exec danger --verbose;
else
if [[ `uname` == "Darwin" ]] ; then
xcodebuild -version;
xcodebuild -showsdks;
fi;
swift --version;
TRAVIS=1 ./scripts/all-tests.sh "${TEST}";
fi;
fi;
after_success:
- sleep 5 # workaround https://github.com/travis-ci/travis-ci/issues/4725