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

Commit 684e481

Browse files
authored
Adding back in LiveQueryDemo-ObjC (#238)
* Adding back in LiveQueryDemo-ObjC Removed this by accident * Remove spaces * Add watchOS to platform * update CI env to Xcode 11.7 * remove bundle from circle * Remove Travis warnings * Remove Travis strategy warning * Update config.yml * add actions for deployment * Update swift.yml * Update swift.yml * Update swift.yml * Add actions badge * Switch actions from build to ci * Update README.md * Remove travis badge * move tests to actions, test on xcode 12. Leave Carthage on circle * add submodules to actions * stagger actions test so cocoapods is always part of initial start * swap docs for watchOS * switch actiions pod_push.yml to deploy.yml * Swap action and circle badges * fix deploy actions name * Add release badge and make ci badge main branch * add release.yml for actions * Let pods release on Xcode 12
1 parent 140a8a7 commit 684e481

File tree

6 files changed

+150
-106
lines changed

6 files changed

+150
-106
lines changed

.circleci/config.yml

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defaults: &defaults
22
macos:
3-
xcode: "11.6.0"
3+
xcode: "11.7.0"
44
shell: /bin/bash --login -eo pipefail
55
aliases:
66
- &cache-pull
@@ -25,60 +25,6 @@ aliases:
2525

2626
version: 2
2727
jobs:
28-
ios:
29-
<<: *defaults
30-
steps:
31-
- checkout
32-
- restore_cache: *cache-pull
33-
- run: *prepare
34-
- save_cache: *cache-push
35-
- run: xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk iphonesimulator -scheme ParseLiveQuery-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 11" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c;
36-
- run: bash <(curl -s https://codecov.io/bash)
37-
- store_test_results:
38-
path: build/reports
39-
macos:
40-
<<: *defaults
41-
steps:
42-
- checkout
43-
- restore_cache: *cache-pull
44-
- run: *prepare
45-
- save_cache: *cache-push
46-
- 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;
47-
- run: bash <(curl -s https://codecov.io/bash)
48-
- store_test_results:
49-
path: build/reports
50-
watchos:
51-
<<: *defaults
52-
steps:
53-
- checkout
54-
- restore_cache: *cache-pull
55-
- run: *prepare
56-
- save_cache: *cache-push
57-
- run: xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme ParseLiveQuery-watchOS -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c;
58-
- run: bash <(curl -s https://codecov.io/bash)
59-
- store_test_results:
60-
path: build/reports
61-
tvos:
62-
<<: *defaults
63-
steps:
64-
- checkout
65-
- restore_cache: *cache-pull
66-
- run: *prepare
67-
- save_cache: *cache-push
68-
- run: xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme ParseLiveQuery-tvOS -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c;
69-
- run: bash <(curl -s https://codecov.io/bash)
70-
- store_test_results:
71-
path: build/reports
72-
demo:
73-
<<: *defaults
74-
steps:
75-
- checkout
76-
- restore_cache: *cache-pull
77-
- run: *prepare
78-
- save_cache: *cache-push
79-
- run: |
80-
xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo | xcpretty -c;
81-
xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo -configuration Debug | xcpretty -c;
8228
carthage:
8329
<<: *defaults
8430
steps:
@@ -92,14 +38,7 @@ workflows:
9238
version: 2
9339
pr:
9440
jobs:
95-
- ios
96-
- macos
97-
- watchos
98-
- tvos
99-
- demo
100-
- carthage:
101-
requires:
102-
- ios
41+
- carthage
10342
nightly:
10443
jobs:
10544
- carthage

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags: '*'
6+
7+
env:
8+
CI_XCODE_VER: '/Applications/Xcode_11.7.app/Contents/Developer'
9+
10+
jobs:
11+
cocoapods:
12+
runs-on: macos-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: CocoaPods
17+
run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose
18+
- name: Deploy CocoaPods
19+
run: set -o pipefail && env NSUnbufferedIO=YES pod trunk push CertificateSigningRequest.podspec --allow-warnings --verbose
20+
env:
21+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

.github/workflows/swift.yml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
CI_XCODE_VER: '/Applications/Xcode_11.7.app/Contents/Developer'
11+
12+
jobs:
13+
14+
ios:
15+
runs-on: macos-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Submodules
19+
run: |
20+
git submodule update --init --recursive
21+
- name: Build-Test
22+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk iphonesimulator -scheme ParseLiveQuery-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 11" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
23+
- name: Send codecov
24+
run: bash <(curl https://codecov.io/bash)
25+
26+
macos:
27+
runs-on: macos-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Submodules
31+
run: |
32+
git submodule update --init --recursive
33+
- name: Build-Test
34+
run: set -o pipefail && env NSUnbufferedIO=YES 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
35+
- name: Send codecov
36+
run: bash <(curl https://codecov.io/bash)
37+
38+
tvos:
39+
runs-on: macos-latest
40+
steps:
41+
- uses: actions/checkout@v2
42+
- name: Submodules
43+
run: |
44+
git submodule update --init --recursive
45+
- name: Build-Test
46+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme ParseLiveQuery-tvOS -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
47+
- name: Send codecov
48+
run: bash <(curl https://codecov.io/bash)
49+
50+
watchos:
51+
runs-on: macos-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- name: Submodules
55+
run: |
56+
git submodule update --init --recursive
57+
- name: Build
58+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme ParseLiveQuery-watchOS -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
59+
- name: Send codecov
60+
run: bash <(curl https://codecov.io/bash)
61+
62+
demo-swift:
63+
needs: ios
64+
runs-on: macos-latest
65+
steps:
66+
- uses: actions/checkout@v2
67+
- name: Submodules
68+
run: |
69+
git submodule update --init --recursive
70+
- name: Clean
71+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo | xcpretty -c
72+
- name: Build
73+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo -configuration Debug | xcpretty -c
74+
- name: Send codecov
75+
run: bash <(curl https://codecov.io/bash)
76+
77+
demo-objective-c:
78+
needs: ios
79+
runs-on: macos-latest
80+
steps:
81+
- uses: actions/checkout@v2
82+
- name: Submodules
83+
run: |
84+
git submodule update --init --recursive
85+
- name: Clean
86+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC | xcpretty -c
87+
- name: Build
88+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC -configuration Debug | xcpretty -c
89+
- name: Send codecov
90+
run: bash <(curl https://codecov.io/bash)
91+
92+
cocoapods:
93+
runs-on: macos-latest
94+
steps:
95+
- uses: actions/checkout@v2
96+
- name: CocoaPods
97+
run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose
98+
99+
docs:
100+
needs: ios
101+
runs-on: macos-latest
102+
steps:
103+
- uses: actions/checkout@v2
104+
- name: Cache Gems
105+
id: cache-gems
106+
uses: actions/cache@v2
107+
with:
108+
path: vendor/bundle
109+
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
110+
restore-keys: |
111+
${{ runner.os }}-gem-
112+
- name: Install Bundle
113+
run: |
114+
bundle config path vendor/bundle
115+
bundle install
116+
- name: Create Jazzy Docs
117+
run: |
118+
./jazzy.sh
119+
- name: Deploy Jazzy Docs
120+
if: github.ref == 'refs/heads/main'
121+
uses: peaceiris/actions-gh-pages@v3
122+
with:
123+
github_token: ${{ secrets.GITHUB_TOKEN }}
124+
publish_dir: ./docs

.travis.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

ParseLiveQuery.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
1111

1212
s.requires_arc = true
1313

14-
s.platform = :ios, :osx, :tvos
14+
s.platform = :ios, :osx, :tvos, :watchos
1515
s.swift_version = '5.0'
1616
s.cocoapods_version = '>= 1.4'
1717

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
[![Carthage compatible][carthage-svg]][carthage-link]
55
[![Podspec][podspec-svg]][podspec-link]
66
[![License][license-svg]][license-link]
7-
[![Build Status][build-status-svg]][build-status-link]
7+
![ci](https://github.com/parse-community/ParseLiveQuery-iOS-OSX/workflows/ci/badge.svg?branch=main)
8+
![release](https://github.com/parse-community/ParseLiveQuery-iOS-OSX/workflows/release/badge.svg)
89
[![Build Status][circleci-status-svg]][circleci-status-link]
910
[![Join The Conversation](https://img.shields.io/discourse/https/community.parseplatform.org/topics.svg)](https://community.parseplatform.org/c/parse-server)
1011
[![Backers on Open Collective](https://opencollective.com/parse-server/backers/badge.svg)](#backers)

0 commit comments

Comments
 (0)