Skip to content

Commit 53f5318

Browse files
authored
Adds circle.yml and updates Makefile. (#59)
1 parent 02ac1cd commit 53f5318

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
XCPRETTY := xcpretty -c && exit ${PIPESTATUS[0]}
2-
31
SDK ?= "iphonesimulator"
4-
DESTINATION ?= "platform=iOS Simulator,name=iPhone 5"
2+
DESTINATION ?= "platform=iOS Simulator,name=iPhone 7"
53
PROJECT := Segment-Amplitude
64
XC_ARGS := -scheme $(PROJECT)_Example -workspace Example/$(PROJECT).xcworkspace -sdk $(SDK) -destination $(DESTINATION) ONLY_ACTIVE_ARCH=NO
75

86
install: Example/Podfile $(PROJECT).podspec
97
pod repo update
108
pod install --project-directory=Example
119

10+
lint:
11+
pod lib lint
12+
1213
clean:
13-
xcodebuild $(XC_ARGS) clean | $(XCPRETTY)
14+
set -o pipefail && xcodebuild $(XC_ARGS) clean | xcpretty
1415

1516
build:
16-
xcodebuild $(XC_ARGS) | $(XCPRETTY)
17+
set -o pipefail && xcodebuild $(XC_ARGS) | xcpretty
1718

1819
test:
19-
xcodebuild test $(XC_ARGS) | $(XCPRETTY)
20+
set -o pipefail && xcodebuild test $(XC_ARGS) | xcpretty --report junit
2021

21-
.PHONY: test build xctest xcbuild clean
22-
.SILENT:
22+
.PHONY: install clean build test

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Analytics
22

3+
[![CircleCI](https://circleci.com/gh/segment-integrations/analytics-ios-integration-amplitude.svg?style=svg)](https://circleci.com/gh/segment-integrations/analytics-ios-integration-amplitude)
34
[![Version](https://img.shields.io/cocoapods/v/Segment-Amplitude.svg?style=flat)](http://cocoapods.org/pods/Segment-Amplitude)
45
[![License](https://img.shields.io/cocoapods/l/Segment-Amplitude.svg?style=flat)](http://cocoapods.org/pods/Segment-Amplitude)
56

circle.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
machine:
2+
xcode:
3+
version: "8.2"
4+
5+
dependencies:
6+
pre:
7+
- gem install xcpretty
8+
- gem install cocoapods -v 1.3.1
9+
override:
10+
- make install
11+
cache_directories:
12+
- Example/Pods
13+
- ~/.cocoapods
14+
15+
test:
16+
override:
17+
- make build
18+
- make test
19+
- make lint

0 commit comments

Comments
 (0)