Skip to content

Commit

Permalink
Use circle for deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
ccnixon committed Sep 20, 2018
1 parent 1ee5ce6 commit 9fa94c6
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 20 deletions.
47 changes: 47 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: 2
jobs:
build-and-test:
macos:
xcode: "9.4.1"
steps:
- checkout
- restore_cache:
key: pods-{{ checksum "Example/Podfile.lock" }}
- run:
name: Install dependencies...
command: |
sudo gem install xcpretty
sudo gem install cocoapods -v 1.3.1
make install
- run:
name: Run tests...
command: |
make build
make test
make lint
- save_cache:
key: pods-{{ checksum "Example/Podfile.lock" }}
paths:
- Example/Pods
publish:
macos:
xcode: "9.4.1"
steps:
- checkout
- run:
name: Publish to Cocoapods..
command: |
pod trunk push Segment-Amplitude.podspec --allow-warnings
workflows:
version: 2
run:
jobs:
- build-and-test
- publish:
requires:
- build-and-test
branches:
ignore:
- /.*/
tags: { only: /[0-9]+(\.[0-9]+)*(-.+)?/ }
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ install: Example/Podfile $(PROJECT).podspec
pod install --project-directory=Example

lint:
pod lib lint
pod lib lint --allow-warnings

clean:
set -o pipefail && xcodebuild $(XC_ARGS) clean | xcpretty
Expand Down
19 changes: 0 additions & 19 deletions circle.yml

This file was deleted.

0 comments on commit 9fa94c6

Please sign in to comment.