forked from Skyscanner/SkyFloatingLabelTextField
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (19 loc) · 939 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
language: objective-c
branches:
only:
- master
xcode_project: SkyFloatingLabelTextField/SkyFloatingLabelTextField.xcodeproj
xcode_scheme: SkyFloatingLabelTextField
osx_image: xcode9
xcode_sdk: iphonesimulator11.1
before_install:
- gem install specific_install
- gem specific_install -l https://github.com/venmo/slather.git
- export IOS_SIMULATOR_UDID=$(instruments -s devices | grep "$ios_device ($ios_version)" | sed -E 's/.*\[([0-9A-F-]+)\].*/\1/g')
- echo "Prelaunching iOS simulator $IOS_SIMULATOR_UDID"
- open -a "simulator" --args -CurrentDeviceUDID $IOS_SIMULATOR_UDID
script:
- xcodebuild clean build test -project SkyFloatingLabelTextField/SkyFloatingLabelTextField.xcodeproj -scheme SkyFloatingLabelTextField -destination 'platform=iOS Simulator,name=iPhone 6' GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES
- swiftlint
after_success:
- cd $TRAVIS_BUILD_DIR && slather