forked from CocoaHeadsBrasil/CocoaHeadsApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (24 loc) · 838 Bytes
/
.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
# see https://github.com/travis-ci/travis-ci/issues/3040
language: objective-c
osx_image: xcode7.3
branches:
only:
- master
before_install:
- DEVICE='iPhone 6'
- IOS_VERSION='9.3'
- SIMULATOR_ID=$(xcrun instruments -s | grep -o "$DEVICE ($IOS_VERSION) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
- brew update
- brew upgrade
- brew install swiftlint
- bundle install
- pod repo update
script:
- bundle exec danger
- echo $SIMULATOR_ID
- open -b com.apple.iphonesimulator --args -CurrentDeviceUDID $SIMULATOR_ID
- set -o pipefail
- xcodebuild clean build test -workspace CocoaHeadsApp.xcworkspace -scheme CocoaHeadsApp -sdk iphonesimulator -destination "platform=iOS Simulator,name=$DEVICE,OS=$IOS_VERSION" | xcpretty -c
notifications:
email: false
slack: iosdevbr:jdozLqf7LLjEeho9PB3uRL6S