Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 18 additions & 37 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,48 @@
defaults: &defaults
macos:
xcode: "11.2.1"
xcode: "11.7.0"
shell: /bin/bash --login -eo pipefail
aliases:
- &cache-pull
keys:
- gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
- gem-cache-v1-{{ arch }}-{{ .Branch }}
- gem-cache-v1
- &cache-push
key: gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
- &prepare
|
git submodule update --init --recursive
sudo gem install bundler
bundle config set path 'vendor/bundle'
bundle install
- &filter-only-master
- &filter-only-main
branches:
only:
- master
- main

version: 2
jobs:
ios:
<<: *defaults
steps:
- checkout
- run: *prepare
- run: xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk iphonesimulator -scheme ParseLiveQuery-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 11,OS=13.2.2" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c;
- run: bash <(curl -s https://codecov.io/bash)
- store_test_results:
path: build/reports
macos:
<<: *defaults
steps:
- checkout
- run: *prepare
- 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;
- run: bash <(curl -s https://codecov.io/bash)
- store_test_results:
path: build/reports
demo:
<<: *defaults
steps:
- checkout
- run: *prepare
- run: |
xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo | xcpretty -c;
xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo -configuration Debug | xcpretty -c;
- run: |
xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC | xcpretty -c;
xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC -configuration Debug | xcpretty -c;
carthage:
<<: *defaults
steps:
- checkout
- restore_cache: *cache-pull
- run: *prepare
- run: carthage build --no-skip-current --platform macos,ios
- save_cache: *cache-push
- run: carthage build --no-skip-current --platform macos,ios,tvos,watchos

workflows:
version: 2
pr:
jobs:
- ios
- macos
- demo
- carthage
nightly:
jobs:
- carthage
triggers:
- schedule:
cron: "0 1 * * *"
filters: *filter-only-master
filters: *filter-only-main
115 changes: 115 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CI_XCODE_VER: '/Applications/Xcode_11.7.app/Contents/Developer'

jobs:
ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Submodules
run: |
git submodule update --init --recursive
- name: Build-Test
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
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Submodules
run: |
git submodule update --init --recursive
- name: Build-Test
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
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

tvos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Submodules
run: |
git submodule update --init --recursive
- name: Build-Test
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
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

watchos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Submodules
run: |
git submodule update --init --recursive
- name: Build
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
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

demo-swift:
needs: ios
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Submodules
run: |
git submodule update --init --recursive
- name: Clean
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo | xcpretty -c
- name: Build
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo -configuration Debug | xcpretty -c
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

demo-objective-c:
needs: ios
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Submodules
run: |
git submodule update --init --recursive
- name: Clean
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC | xcpretty -c
- name: Build
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC -configuration Debug | xcpretty -c
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

cocoapods:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: CocoaPods
run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose

docs:
needs: ios
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gems
id: cache-gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install Bundle
run: |
bundle config path vendor/bundle
bundle install
- name: Create Jazzy Docs
run: |
./jazzy.sh
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: release
on:
release:
types: [published]
env:
CI_XCODE_VER: '/Applications/Xcode_11.7.app/Contents/Developer'

jobs:
cocoapods:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: CocoaPods
run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose
- name: Deploy CocoaPods
run: set -o pipefail && env NSUnbufferedIO=YES pod trunk push ParseLiveQuery.podspec --allow-warnings --verbose
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

docs:
needs: ios
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gems
id: cache-gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install Bundle
run: |
bundle config path vendor/bundle
bundle install
- name: Create Jazzy Docs
run: |
./jazzy.sh
- name: Deploy Jazzy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
9 changes: 0 additions & 9 deletions .jazzy.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

Loading