-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
31 lines (31 loc) · 1.17 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
language: objective-c
osx_image: xcode10.2
branches:
only:
- /.*/
directories:
- $HOME/.cocoapods/
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE=goSellSDK.xcworkspace
- IOS_FRAMEWORK_SCHEME="goSellSDK"
matrix:
- DESTINATION="OS=12.2,name=iPhone X" 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=8.4,name=iPhone 4S" SCHEME="$IOS_FRAMEWORK_SCHEME"
before_install:
- gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
install:
- gem install bundler
- bundle install --jobs=3 --retry=3 --deployment --without distribution
- bundle exec pod repo update
- bundle exec pod update
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;