-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
49 lines (40 loc) · 1.55 KB
/
.travis.yml
File metadata and controls
49 lines (40 loc) · 1.55 KB
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
49
# 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=Example.xcworkspace
- IOS_SCHEME="Tests-iOS"
- IOS_SDK=iphonesimulator
- OSX_SCHEME="Tests-macOS"
- OSX_SDK=macosx
matrix:
- DESTINATION="platform=iOS Simulator,name=iPhone 5S" SCHEME="$IOS_SCHEME" SDK="$IOS_SDK" POD_LINT="NO"
- DESTINATION="platform=iOS Simulator,name=iPad Air 2" SCHEME="$IOS_SCHEME" SDK="$IOS_SDK" POD_LINT="NO"
- DESTINATION="platform=iOS Simulator,name=iPhone 6S" SCHEME="$IOS_SCHEME" SDK="$IOS_SDK" POD_LINT="NO"
- DESTINATION="arch=x86_64" SCHEME="$OSX_SCHEME" SDK="$OSX_SDK" POD_LINT="YES"
before_install:
- bundle install
- bundle exec pod repo update > /dev/null
install:
- cd Example
- bundle exec pod install
before_script:
- bundle exec pod --version
- 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 | bundle exec xcpretty -c -f `xcpretty-travis-formatter`;
# Run `pod lib lint` if specified
- if [ $POD_LINT == "YES" ]; then
cd ../
bundle exec pod lib lint --verbose;
fi
after_success:
- bash <(curl -s https://codecov.io/bash)