-
Notifications
You must be signed in to change notification settings - Fork 691
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (23 loc) · 900 Bytes
/
Copy path.travis.yml
File metadata and controls
31 lines (23 loc) · 900 Bytes
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: xcode9.2
cache:
- cocoapods
- bundler
before_install:
- git submodule sync
- git submodule update --init --recursive
#- rvm install 2.2.4
- gem install cocoapods
- gem install xcpretty
- pod --version
- pod setup --silent
- pod repo update --silent
#check podspec
#- travis_wait 35 pod spec lint --use-libraries --allow-warnings ShareKit.podspec
#check podspec with current commit
- pod lib lint --use-libraries --allow-warnings ShareKit.podspec --no-subspecs
script:
#build library
- xcodebuild -project "ShareKit.xcodeproj" -scheme "Static Library" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty && exit ${PIPESTATUS[0]}
#run tests
- xcodebuild test -project "ShareKit.xcodeproj" -scheme "Static Library" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -destination 'platform=iOS Simulator,name=iPhone SE,OS=latest'| xcpretty && exit ${PIPESTATUS[0]}