-
-
Notifications
You must be signed in to change notification settings - Fork 871
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * wip * Proper docs generation * Build stages in travis * fixup! Build stages in travis * fixup! fixup! Build stages in travis * fixup! fixup! fixup! Build stages in travis * Upload releases automatically to github * Remove other stages * restores all tasks * Note about the version bump rake task * Adds cocoapods deployment * Dummy podspec * skip cleanup * nit * diable * use publish script * Makes it exectutable * Skip validation for now * nit * gem install bundler in publish * proper publish * remove dummy file * Restores cocoapods validation script * Adds docs gen and publishing * ouput to proper directory * Proper doc generations * Changes author to Parse Community * Update .travis.yml
- Loading branch information
1 parent
9b8b8fe
commit 0469af6
Showing
7 changed files
with
126 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -29,6 +29,8 @@ xcuserdata | |
## Dependency Managers | ||
Pods/ | ||
Carthage/Build | ||
docs/ | ||
./Bolts | ||
|
||
## AppCode | ||
.idea/ |
This file contains 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,38 +1,70 @@ | ||
branches: | ||
only: | ||
- master | ||
language: objective-c | ||
os: osx | ||
osx_image: xcode8.3 | ||
env: | ||
global: | ||
- LC_CTYPE=en_US.UTF-8 | ||
- LANG=en_US.UTF-8 | ||
matrix: | ||
- TEST_TYPE=iOS | ||
- TEST_TYPE=macOS | ||
- TEST_TYPE=Deployment | ||
- TEST_TYPE=Carthage | ||
- TEST_TYPE=CocoaPods | ||
branches: | ||
only: | ||
- master | ||
- /^v?[0-9]+\.[0-9]+\.[0-9]+(-.*)?$/ | ||
git: | ||
submodules: false | ||
|
||
before_install: | ||
- git submodule update --init --recursive | ||
install: | ||
- | | ||
if [ -n "$TEST_TYPE" ]; then | ||
bundle install | ||
if [ "$TEST_TYPE" == "Carthage" ]; then | ||
brew update | ||
brew install carthage || brew upgrade carthage | ||
fi | ||
fi | ||
|
||
stage: test | ||
env: | ||
global: | ||
- LC_CTYPE=en_US.UTF-8 | ||
- LANG=en_US.UTF-8 | ||
matrix: | ||
- TEST_TYPE=iOS | ||
- TEST_TYPE=macOS | ||
install: bundle install | ||
script: | ||
- | | ||
RAKE_TASK_NAME=$(echo "$TEST_TYPE" | tr '[:upper:]' '[:lower:]') | ||
bundle exec rake test:$RAKE_TASK_NAME | ||
after_success: | ||
- | | ||
if [ "$TEST_TYPE" = iOS ] || [ "$TEST_TYPE" = macOS ]; then | ||
bash <(curl -s https://codecov.io/bash) | ||
fi | ||
after_success: bash <(curl -s https://codecov.io/bash) | ||
|
||
jobs: | ||
include: | ||
- stage: release | ||
env: Deployment | ||
install: bundle install | ||
script: | ||
- bundle exec rake test:deployment | ||
- ./Scripts/jazzy.sh | ||
deploy: | ||
- provider: releases | ||
api_key: | ||
secure: $GITHUB_TOKEN # Set in travis-ci.org dashboard | ||
file_glob: true | ||
file: build/release/* | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
all_branches: true | ||
- provider: pages | ||
skip_cleanup: true | ||
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard | ||
local_dir: docs/ | ||
on: | ||
all_branches: true | ||
- stage: release | ||
env: Cocoapods | ||
install: bundle install | ||
script: bundle exec rake test:cocoapods | ||
deploy: | ||
provider: script | ||
skip_cleanup: true | ||
script: ./Scripts/publish.sh | ||
on: | ||
tags: true | ||
all_branches: true | ||
- stage: release | ||
env: Carthage | ||
install: | ||
- bundle install | ||
- brew update | ||
- brew install carthage || brew upgrade carthage | ||
script: bundle exec rake test:carthage |
This file contains 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 |
---|---|---|
|
@@ -6,3 +6,5 @@ gem 'naturally', '~> 1.3.2' | |
gem 'xcpretty' | ||
gem 'xcodeproj' | ||
gem 'cocoapods' | ||
gem 'jazzy', '~> 0.9.0' | ||
|
This file contains 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 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 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,20 @@ | ||
mkdir -p ./Bolts # Create a temporary bolts folder | ||
cp -R Carthage/Checkouts/Bolts-ObjC/Bolts/**/*.h ./Bolts # Copy bolts | ||
|
||
ver=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Parse/Resources/Parse-iOS.Info.plist` | ||
jazzy \ | ||
--objc \ | ||
--clean \ | ||
--author "Parse Community" \ | ||
--author_url http://parseplatform.org \ | ||
--github_url https://github.com/parse-community/Parse-SDK-iOS-OSX \ | ||
--root-url http://parseplatform.org/Parse-SDK-iOS-OSX/api/ \ | ||
--module-version ${ver} \ | ||
--xcodebuild-arguments --objc,Parse/Parse.h,--,-x,objective-c,-isysroot,$(xcrun --show-sdk-path --sdk iphonesimulator),-I,$(pwd) \ | ||
--theme fullwidth \ | ||
--skip-undocumented \ | ||
--exclude=./Bolts/* \ | ||
--module Parse \ | ||
--output docs/api | ||
|
||
rm -rf ./Bolts # cleanup temporary bolts |
This file contains 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 Parse.podspec |