forked from dehrom/ChatLayout
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
18 lines (17 loc) · 1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# references:
# * https://www.objc.io/issues/6-build-tools/travis-ci/
# * https://github.com/supermarin/xcpretty#usage
osx_image: xcode12.2
language: swift
cache: cocoapods, slather
podfile: Example/Podfile
before_install:
- gem install slather
- gem install cocoapods # Since Travis is not always on latest version
- pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/ChatLayout.xcworkspace -scheme ChatLayout-Example -sdk iphonesimulator -derivedDataPath ${TRAVIS_BUILD_DIR}/chatLayoutDerivedData -destination 'platform=iOS Simulator,name=iPhone 11,OS=13.5' ONLY_ACTIVE_ARCH=YES | xcpretty
- pod lib lint --allow-warnings
after_success:
- slather coverage -t -b ${TRAVIS_BUILD_DIR}/chatLayoutDerivedData --cobertura-xml --output-directory ${TRAVIS_BUILD_DIR}/tests --arch x86_64 --verbose
- bash <(curl -s https://codecov.io/bash) -f ${TRAVIS_BUILD_DIR}/tests/cobertura.xml -X coveragepy -X gcov -X xcode -t 3dc048e4-cc93-4a01-9423-4f516c9e1885