forked from filestack/filestack-ios
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
33 lines (31 loc) · 1.16 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
language: objective-c
osx_image: xcode9
branches:
only:
- ios-sdk
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- IOS_FRAMEWORK_SCHEME="Filestack"
- NSUnbufferedIO=YES
matrix:
- DESTINATION="OS=11.0,name=iPhone 8 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME"
- DESTINATION="OS=10.3.1,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME"
- DESTINATION="OS=9.3,name=iPhone 6" SCHEME="$IOS_FRAMEWORK_SCHEME"
- DESTINATION="OS=9.0,name=iPhone 5" SCHEME="$IOS_FRAMEWORK_SCHEME"
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
- brew outdated xctool || brew upgrade xctool
- carthage bootstrap --no-build --use-submodules --verbose
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
- carthage version
# Build Framework in Debug and Run Tests
- xcodebuild -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES clean build build-for-testing | xcpretty;
- travis_retry xcodebuild -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug test-without-building | xcpretty;
after_success:
- sleep 5