forked from Esqarrouth/EZSwiftExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (27 loc) · 1.28 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
osx_image: xcode9.2
language: objective-c
rvm: 2.2.2
cache: cocoapods
env:
global:
- PROJECT=EZSwiftExtensions.xcodeproj
before_install:
- gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
- gem install xcpretty
- gem install xcpretty-json-formatter
- brew unlink swiftlint
- brew uninstall swiftlint
- brew install swiftlint
- brew update
- brew outdated swiftlint || brew upgrade swiftlint
before_script:
- swiftlint
script:
- set -o pipefail
- xcodebuild clean build test -project "$PROJECT" -scheme EZSwiftExtensions-iOS -destination 'platform=iOS Simulator,name=iPhone 5s,OS=10.3.1' | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-ios.json" xcpretty -f `xcpretty-json-formatter`
- xcodebuild clean build test -project "$PROJECT" -scheme EZSwiftExtensions-tvOS -destination 'platform=tvOS Simulator,name=Apple TV 1080p,OS=10.0' | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-tvos.json" xcpretty -f `xcpretty-json-formatter`
- xcodebuild clean build test -project "$PROJECT" -scheme EZSwiftExtensions-macOS -destination 'platform=macOS,arch=x86_64' | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-macos.json" xcpretty -f `xcpretty-json-formatter`
- pod lib lint
- bundle exec danger --fail-on-errors=true
after_success:
- bash <(curl -s https://codecov.io/bash)