forked from openid/AppAuth-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (34 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
# Travis CI config for AppAuth
# Use the `wwtd` gem to test locally.
language: objective-c
jobs:
include:
- stage: Swift PM
osx_image: xcode11.4
script:
# Build the project using Swift PM
- swift build
# Test the project using Swift PM
- swift test
- stage: Xcode Tests
osx_image: xcode11
# Tests iOS, macOS and tvOS: both static library and framework schemes.
env:
# To generate this list, use `xcodebuild -showsdks` to get possible SDK values, and platforms.
# Use `instruments -s devices` to get the device name.
- SCHEME=AppAuth-iOS DESTINATION="'platform=iOS Simulator,name=iPhone 11,OS=13.0'" SDK=iphonesimulator13.0
- SCHEME=AppAuth_iOS DESTINATION="'platform=iOS Simulator,name=iPhone 11,OS=13.0'" SDK=iphonesimulator13.0
- SCHEME=AppAuth-macOS DESTINATION="'platform=macOS,arch=x86_64'" SDK=macosx10.15
- SCHEME=AppAuth_macOS DESTINATION="'platform=macOS,arch=x86_64'" SDK=macosx10.15
- SCHEME=AppAuth-tvOS DESTINATION="'platform=tvOS Simulator,name=Apple TV,OS=13.0'" SDK=appletvsimulator13.0
- SCHEME=AppAuth_tvOS DESTINATION="'platform=tvOS Simulator,name=Apple TV,OS=13.0'" SDK=appletvsimulator13.0
before_script:
- sudo gem install xcpretty
script:
# Breaking down this command:
# eval is used here, otherwise environment variables are not present.
# `set -o pipefail && ` is so that the return code isn't gobbled by xcpretty (per https://github.com/supermarin/xcpretty#usage)
# then it's standard xcodebuild | xcpretty.
- eval "set -o pipefail && xcodebuild -project AppAuth.xcodeproj -scheme $SCHEME -sdk $SDK -destination $DESTINATION -enableCodeCoverage YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES OTHERCFLAGS='-Werror' test | xcpretty"
after_success:
- bash <(curl -s https://codecov.io/bash)