-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
executable file
·45 lines (37 loc) · 1.29 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
osx_image: xcode10.2
language: objective-c
notifications:
email: false
branches:
only:
- master
- /^\d+\.\d+\.\d+$/
cache: cocoapods
before_install:
- gem install cocoapods -v '~> 1.7.0' --no-document --quiet
- gem install xcpretty --no-document --quiet
- pod --version
- pod repo update --silent
- xcpretty --version
- xcodebuild -version
- xcodebuild -showsdks
jobs:
include:
- stage: lint
script:
- pod lib lint --allow-warnings
- stage: test
script:
- rm -rf ~/Library/Developer/Xcode/DerivedData/
- cd Demo
- pod install
- xcodebuild clean build -workspace Demo.xcworkspace -scheme Demo -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone XS' -configuration Debug | xcpretty -c
- xcodebuild clean test -workspace Demo.xcworkspace -scheme DemoTests -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone XS' -configuration Debug | xcpretty -c
- stage: deploy
if: tag IS present
before_script:
- echo 'current tag -> $TRAVIS_TAG'
- sed -i '' "s/s.version = '0.0.1'/s.version = '$TRAVIS_TAG'/g" VerticalTree.podspec
script:
- set -eo pipefail
- pod trunk push --verbose --allow-warnings | ruby -e 'ARGF.each{ print "." }'