Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit 20fc8e0

Browse files
authored
Use CircleCi for PR builds (#145)
* Initial CircleCI * Fixes multilines * nit * nit * sudo * Custom shell for ruby * proper ruby version * ruby * ruby 2.3 * Fetch submodules * trust chruby * nit * nits * Use travis only for distributions * nits * Adds circleCI shield * Use Workfows * nit
1 parent e04adfe commit 20fc8e0

File tree

4 files changed

+81
-36
lines changed

4 files changed

+81
-36
lines changed

.circleci/config.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
defaults: &defaults
2+
macos:
3+
xcode: "8.3.3"
4+
shell: /bin/bash --login -eo pipefail
5+
aliases:
6+
- &prepare
7+
|
8+
git submodule update --init --recursive
9+
gem install bundler
10+
bundle install
11+
- &filter-only-master
12+
branches:
13+
only:
14+
- master
15+
16+
version: 2
17+
jobs:
18+
ios:
19+
<<: *defaults
20+
steps:
21+
- checkout
22+
- run: *prepare
23+
- run: xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk iphonesimulator -scheme ParseLiveQuery-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 6 Plus" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c;
24+
- run: bash <(curl -s https://codecov.io/bash)
25+
- store_test_results:
26+
path: build/reports
27+
macos:
28+
<<: *defaults
29+
steps:
30+
- checkout
31+
- run: *prepare
32+
- run: xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk macosx -scheme ParseLiveQuery-OSX -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c;
33+
- run: bash <(curl -s https://codecov.io/bash)
34+
- store_test_results:
35+
path: build/reports
36+
demo:
37+
<<: *defaults
38+
steps:
39+
- checkout
40+
- run: *prepare
41+
- run: |
42+
xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo | xcpretty -c;
43+
xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo -configuration Debug | xcpretty -c;
44+
- run: |
45+
xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC | xcpretty -c;
46+
xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC -configuration Debug | xcpretty -c;
47+
carthage:
48+
<<: *defaults
49+
steps:
50+
- checkout
51+
- run: *prepare
52+
- run: carthage build --no-skip-current --platform macos,ios
53+
cocoapods:
54+
<<: *defaults
55+
steps:
56+
- checkout
57+
- run: *prepare
58+
- run: |
59+
bundle exec pod repo update --silent;
60+
pod lib lint ParseLiveQuery.podspec;
61+
62+
workflows:
63+
version: 2
64+
pr:
65+
jobs:
66+
- ios
67+
- macos
68+
- demo
69+
nightly:
70+
jobs:
71+
- cocoapods
72+
- carthage
73+
triggers:
74+
- schedule:
75+
cron: "0 1 * * *"
76+
filters: *filter-only-master

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.1
1+
ruby-2.3

.travis.yml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,47 +7,12 @@ os: osx
77
osx_image: xcode8.3
88
cache:
99
- cocoapods
10-
1110
install: bundle install
1211

1312
jobs:
1413
include:
15-
- stage: test
16-
env: iOS
17-
script:
18-
- |
19-
set -o pipefail
20-
xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk iphonesimulator -scheme ParseLiveQuery-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 4s" -destination "platform=iOS Simulator,name=iPhone 6 Plus" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
21-
after_success: bash <(curl -s https://codecov.io/bash)
22-
- stage: test
23-
env: OSX
24-
script:
25-
- |
26-
set -o pipefail
27-
xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk macosx -scheme ParseLiveQuery-OSX -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
28-
after_success: bash <(curl -s https://codecov.io/bash)
29-
- stage: demo
30-
env: OSX-Swift
31-
script:
32-
- |
33-
set -o pipefail
34-
xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo | xcpretty -c
35-
xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo -configuration Debug | xcpretty -c
36-
- stage: demo
37-
env: OSX-ObjC
38-
script:
39-
- |
40-
set -o pipefail
41-
xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC | xcpretty -c
42-
xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC -configuration Debug | xcpretty -c
43-
- stage: distribution
44-
env: Carthage
45-
script: carthage build --no-skip-current
4614
- stage: distribution
4715
env: CocoaPods
48-
script:
49-
- bundle exec pod repo update --silent
50-
- pod lib lint ParseLiveQuery.podspec
5116
deploy:
5217
provider: script
5318
skip_cleanup: true

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[![License][license-svg]][license-link]
88

99
[![Build Status][build-status-svg]][build-status-link]
10+
[![Build Status][circleci-status-svg]][circleci-status-link]
1011

1112
`PFQuery` is one of the key concepts for Parse. It allows you to retrieve `PFObject`s by specifying some conditions, making it easy to build apps such as a dashboard, a todo list or even some strategy games. However, `PFQuery` is based on a pull model, which is not suitable for apps that need real-time support.
1213

@@ -84,6 +85,9 @@ As of April 5, 2017, Parse, LLC has transferred this code to the parse-community
8485
[build-status-svg]: https://img.shields.io/travis/parse-community/ParseLiveQuery-iOS-OSX/master.svg
8586
[build-status-link]: https://travis-ci.org/parse-community/ParseLiveQuery-iOS-OSX/branches
8687

88+
[circleci-status-svg]: https://circleci.com/gh/parse-community/ParseLiveQuery-iOS-OSX.svg?style=shield
89+
[circleci-status-link]: https://circleci.com/build-insights/gh/parse-community/ParseLiveQuery-iOS-OSX/master
90+
8791
[coverage-status-svg]: https://img.shields.io/codecov/c/github/parse-community/ParseLiveQuery-iOS-OSX/master.svg
8892
[coverage-status-link]: https://codecov.io/github/parse-community/ParseLiveQuery-iOS-OSX?branch=master
8993

0 commit comments

Comments
 (0)