forked from BoutFitness/Concept2-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (28 loc) · 1.08 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
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
language: objective-c
osx_image: xcode7
podfile: Example-iOS/Podfile
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
matrix:
- DESTINATION="OS=9.0,name=iPhone 6" SDK=iphonesimulator9.0 POD_LINT="NO"
- DESTINATION="OS=9.0,name=iPhone 6 Plus" SDK=iphonesimulator9.0 POD_LINT="YES"
before_install:
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
- pod install --project-directory=Example-iOS
install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -workspace Example-iOS/Example-iOS.xcworkspace -scheme "Concept2-SDK-Example" -sdk "$SDK" -destination "$DESTINATION"
-configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
- xcodebuild -workspace Example-iOS/Example-iOS.xcworkspace -scheme "Concept2-SDK-Example" -sdk "$SDK" -destination "$DESTINATION"
-configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
- if [ $POD_LINT == "YES" ]; then
pod lib lint --quick;
fi