/
.travis.yml
41 lines (32 loc) 路 1.3 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
language: objective-c
osx_image: xcode10.2
xcode_workspace: FFSafeKit.xcworkspace
podfile: Demo/Podfile
before_install:
- env
- locale
- bundle install
- gem install cocoapods --no-document --quiet
- gem install xcpretty --no-document --quiet
- bundler exec pod --version
- bundler exec pod setup --silent > /dev/null
- bundler exec pod repo update --silent
- xcpretty --version
- xcodebuild -version
- xcodebuild -showsdks
script:
- set -o pipefail
- echo Check if the library described by the podspec can be built
- pod lib lint --allow-warnings
- echo Build as static library
- xcodebuild build -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "FFSafeKit_Static" -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
- echo Build as dynamic framework
- xcodebuild build -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "FFSafeKit" -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
- echo Build the Demo apps
- pod install --project-directory=Demo
- xcodebuild build -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "FFSafeKit_Demo" -configuration Debug -destination "name=iPhone XS" | xcpretty -c
- echo Clean DerivedData
- rm -rf ~/Library/Developer/Xcode/DerivedData/
- mkdir DerivedData
notifications:
email: false