-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (39 loc) · 1.46 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
38
39
40
41
42
43
44
45
46
47
48
# Based on: http://www.enekoalonso.com/articles/creating-swift-frameworks-for-ios-osx-and-tvos
language: objective-c
os:
- osx
osx_image: xcode8.3
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE=Tests.xcworkspace
- IOS_SCHEME="iOS Tests"
- IOS_SDK=iphonesimulator10.3
- OSX_SCHEME="macOS Tests"
- OSX_SDK=macosx10.12
matrix:
- DESTINATION="OS=10.1,name=iPad Air 2" SCHEME="$IOS_SCHEME" SDK="$IOS_SDK" POD_LINT="NO"
- DESTINATION="OS=10.2,name=iPad Air 2" SCHEME="$IOS_SCHEME" SDK="$IOS_SDK" POD_LINT="NO"
- DESTINATION="OS=10.3.1,name=iPad Air 2" SCHEME="$IOS_SCHEME" SDK="$IOS_SDK" POD_LINT="NO"
- DESTINATION="arch=x86_64" SCHEME="$OSX_SCHEME" SDK="$OSX_SDK" POD_LINT="YES"
before_install:
- pod repo update > /dev/null
install:
- cd Tests
- pod install
- gem install xcpretty-travis-formatter
before_script:
- xcodebuild -version
- xcodebuild -showsdks
- xcodebuild -workspace "$WORKSPACE" -list
script:
# Build Framework in Debug and Run Tests
- set -o pipefail && xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | tee xcodebuild.log | xcpretty -c -f `xcpretty-travis-formatter`;
# Run `pod lib lint` if specified
- if [ $POD_LINT == "YES" ]; then
cd ../
pod lib lint --private --verbose;
fi
after_success:
- bash <(curl -s https://codecov.io/bash)