Skip to content

Commit daa17a5

Browse files
Add Travis CI.
Adapted from AppAuth iOS's config (https://github.com/openid/AppAuth-iOS/blob/master/.travis.yml)
1 parent 7e84877 commit daa17a5

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.travis.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Travis CI config for AppAuth
2+
# Use the `wwtd` gem to test locally.
3+
language: objective-c
4+
osx_image: xcode9
5+
# Tests iOS, macOS and tvOS: both static library and framework schemes.
6+
env:
7+
# To generate this list, use `xcodebuild -showsdks` to get possible SDK values, and platforms.
8+
# Use `instruments -s devices` to get the device name.
9+
- SCHEME=OpenLocationCode_iOS DESTINATION="'platform=iOS Simulator,name=iPhone 6,OS=11.0'" SDK=iphonesimulator11.0
10+
- SCHEME=OpenLocationCode_macOS DESTINATION="'platform=macOS,arch=x86_64'" SDK=macosx10.13
11+
- SCHEME=OpenLocationCode_tvOS DESTINATION="'platform=tvOS Simulator,name=Apple TV,OS=11.0'" SDK=appletvsimulator11.0
12+
before_script:
13+
- sudo gem install xcpretty
14+
script:
15+
# Breaking down this command:
16+
# eval is used here, otherwise environment variables are not present.
17+
# `set -o pipefail && ` is so that the return code isn't gobbled by xcpretty (per https://github.com/supermarin/xcpretty#usage)
18+
# then it's standard xcodebuild | xcpretty.
19+
- eval "set -o pipefail && xcodebuild -project OpenLocationCode.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"
20+
- eval "swift --version; swift test"
21+
after_success:
22+
- bash <(curl -s https://codecov.io/bash)
23+

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Open Location Code for Swift
2+
[![Build Status](https://travis-ci.org/google/open-location-code-swift.svg?branch=master)](https://travis-ci.org/google/open-location-code-swift)
23
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
34

45
Convert between decimal degree coordinates and Open Location Codes. Shorten

0 commit comments

Comments
 (0)