-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
37 lines (34 loc) · 1.2 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
# references:
# * http://www.objc.io/issue-6/travis-ci.html
jobs:
cache: bundler
include:
# Linux build
- os: linux
dist: xenial
before_install:
- git clone https://github.com/IBM-Swift/Package-Builder.git
script: ./Package-Builder/build-package.sh -projectDir $TRAVIS_BUILD_DIR
# Mac OS latest Xcode build and test
- os: osx
osx_image: xcode11.1
language: objective-c
xcode_workspace: ViaSwiftUtils.xcworkspace
xcode_scheme: ViaSwiftUtils_iOS
xcode_destination: platform=iOS Simulator,OS=13.1,name=iPhone 11 Pro
install:
- ./install_swiftlint.sh
- bundle install
script:
- bundle exec danger
- set -o pipefail && xcodebuild test -workspace ViaSwiftUtils.xcworkspace -scheme ViaSwiftUtils_iOS -destination "platform=iOS Simulator,OS=13.1,name=iPhone 11 Pro" | xcpretty
# Mac OS older Xcode build
- os: osx
osx_image: xcode10.3
language: objective-c
xcode_workspace: ViaSwiftUtils.xcworkspace
xcode_scheme: ViaSwiftUtils_iOS
xcode_destination: platform=iOS Simulator,OS=12.4,name=iPhone 8
install:
- ./install_swiftlint.sh
- bundle install