forked from SDWebImage/SDWebImageAVIFCoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (41 loc) · 1.9 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
46
47
48
49
50
51
52
language: objective-c
osx_image: xcode11.2
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
addons:
ssh_known_hosts: github.com
notifications:
email: false
before_install:
- env
- locale
- brew install git-lfs
- git lfs install
- gem install cocoapods --no-document --quiet
- gem install xcpretty --no-document --quiet
- pod --version
- pod repo update --silent
- xcpretty --version
- xcodebuild -version
- xcodebuild -showsdks
before_script:
- git lfs pull
script:
- set -o pipefail
- echo Check if the library described by the podspec can be built
# Run full subspecs linting consuming too much of build time because CocoaPods use source code of Pods
# Since`libx265` && `libde265` is Pod and have their own linting, don't waste time to lint full subspecs combination
- pod lib lint --use-libraries --allow-warnings --no-subspecs --fail-fast
- echo Build example
- pod install --project-directory=Example
- xcodebuild build -workspace Example/SDWebImageAVIFCoder.xcworkspace -scheme 'SDWebImageAVIFCoder-Example' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11 Pro' -configuration Debug | xcpretty -c
- xcodebuild build -workspace Example/SDWebImageAVIFCoder.xcworkspace -scheme 'SDWebImageAVIFCoder-Example macOS' -sdk macosx -configuration Debug | xcpretty -c
- xcodebuild build -workspace Example/SDWebImageAVIFCoder.xcworkspace -scheme 'SDWebImageAVIFCoder_Example CLI' -sdk macosx -configuration Debug | xcpretty -c
- echo Clean builds
- rm -rf ~/Library/Developer/Xcode/DerivedData/
- echo Run unit tests
- xcodebuild clean build test -workspace Example/SDWebImageAVIFCoder.xcworkspace -scheme "SDWebImageAVIFCoder-Example" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11 Pro' -enableCodeCoverage 'YES' -configuration Debug | xcpretty -c
after_success:
- bash <(curl -s https://codecov.io/bash)