This repository was archived by the owner on Jun 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 132
Adds jazzy docs generation and gh-pages releases #137
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0651dce
Adds jazzy docs generation and gh-pages releases
flovilmart 40fa2c2
Skip after success
flovilmart e6171a9
use jobs
flovilmart 8f1f7bc
nits
flovilmart bfaed73
Adds Cocoapods autopublish
flovilmart 457bc7c
Better jazzy config
flovilmart 82491f6
Fixes warning appearing in 8.3.3
flovilmart cbb5fdd
Makes pod repo update silent
flovilmart dd6fab8
Update .travis.yml
flovilmart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,7 @@ Temporary Items | |
| ## Build generated | ||
| build/ | ||
| DerivedData | ||
| docs/ | ||
|
|
||
| ## Various settings | ||
| *.pbxuser | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| module: "ParseLiveQuery" | ||
| xcodebuild_arguments: ["-scheme","ParseLiveQuery-iOS"] | ||
| theme: "fullwidth" | ||
| skip_undocumented: true | ||
| clean: true | ||
| author_url: "http://parseplatform.org" | ||
| github_url: "https://github.com/parse-community/ParseLiveQuery-iOS-OSX" | ||
| root_url: "http://parseplatform.org/ParseLiveQuery-iOS-OSX/" | ||
| author: "Parse Community" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,46 +1,67 @@ | ||
| branches: | ||
| only: | ||
| - master | ||
| - /^v?[0-9]+\.[0-9]+\.[0-9]+(-.*)?$/ | ||
| language: objective-c | ||
| os: osx | ||
| osx_image: xcode8 | ||
| osx_image: xcode8.3 | ||
| cache: | ||
| - cocoapods | ||
| env: | ||
| matrix: | ||
| - TEST_TYPE=iOS | ||
| - TEST_TYPE=OSX | ||
| - TEST_TYPE=OSXDemoSwift | ||
| - TEST_TYPE=OSXDemoObjC | ||
| - TEST_TYPE=CocoaPods | ||
| - TEST_TYPE=Carthage | ||
| install: | ||
| - | | ||
| bundle install | ||
| script: | ||
| - | | ||
| if [ "$TEST_TYPE" = iOS ]; then | ||
| set -o pipefail | ||
| 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 | ||
| elif [ "$TEST_TYPE" = OSX ]; then | ||
| set -o pipefail | ||
| 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 | ||
| elif [ "$TEST_TYPE" = OSXDemoSwift ]; then | ||
| set -o pipefail | ||
| xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo | xcpretty -c | ||
| xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo -configuration Debug | xcpretty -c | ||
| elif [ "$TEST_TYPE" = OSXDemoObjC ]; then | ||
| set -o pipefail | ||
| xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC | xcpretty -c | ||
| xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC -configuration Debug | xcpretty -c | ||
| elif [ "$TEST_TYPE" = CocoaPods ]; then | ||
| bundle exec pod repo update 2>&1 > /dev/null || exit 1 | ||
| pod lib lint ParseLiveQuery.podspec | ||
| elif [ "$TEST_TYPE" = Carthage ]; then | ||
| carthage build --no-skip-current | ||
| fi | ||
| after_success: | ||
| - | | ||
| if [ "$TEST_TYPE" = iOS ] || [ "$TEST_TYPE" = OSX ]; then | ||
| bash <(curl -s https://codecov.io/bash) | ||
| fi | ||
|
|
||
| install: bundle install | ||
|
|
||
| jobs: | ||
| include: | ||
| - stage: test | ||
| env: iOS | ||
| script: | ||
| - | | ||
| set -o pipefail | ||
| 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 | ||
| after_success: bash <(curl -s https://codecov.io/bash) | ||
| - stage: test | ||
| env: OSX | ||
| script: | ||
| - | | ||
| set -o pipefail | ||
| 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 | ||
| after_success: bash <(curl -s https://codecov.io/bash) | ||
| - stage: demo | ||
| env: OSX-Swift | ||
| script: | ||
| - | | ||
| set -o pipefail | ||
| xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo | xcpretty -c | ||
| xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo -configuration Debug | xcpretty -c | ||
| - stage: demo | ||
| env: OSX-ObjC | ||
| script: | ||
| - | | ||
| set -o pipefail | ||
| xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC | xcpretty -c | ||
| xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC -configuration Debug | xcpretty -c | ||
| - stage: distribution | ||
| env: Carthage | ||
| script: carthage build --no-skip-current | ||
| - stage: distribution | ||
| env: CocoaPods | ||
| script: | ||
| - bundle exec pod repo update --silent | ||
| - pod lib lint ParseLiveQuery.podspec | ||
| deploy: | ||
| provider: script | ||
| skip_cleanup: true | ||
| script: ./publish.sh | ||
| on: | ||
| tags: true | ||
| all_branches: true | ||
| - stage: distribution | ||
| env: Docs | ||
| script: bundle exec jazzy | ||
| deploy: | ||
| provider: pages | ||
| skip_cleanup: true | ||
| github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard | ||
| local_dir: docs/ | ||
| on: | ||
| all_branches: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,4 @@ source 'https://rubygems.org' | |
| gem 'xcpretty' | ||
| # xcode8 compat | ||
| gem 'cocoapods', '1.1.1' | ||
| gem 'jazzy' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #!/bin/sh -e | ||
| gem install bundler | ||
| bundle install | ||
| bundle exec pod trunk push ParseLiveQuery.podspec |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an identical
after_successcall above, but in a separate test stage for a separate environment. Is there a way to consolidate these two declarations of stage test with different scripts depending on the environment, but the sameafter_successresult?