This repository has been archived by the owner on Jan 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds podspec and scripts to release and publish
- Loading branch information
arlo-egg
committed
Jul 4, 2017
1 parent
e05a921
commit 4d06726
Showing
5 changed files
with
84 additions
and
0 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
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,10 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'pxctest' | ||
s.version = `./scripts/get_version.sh` | ||
s.summary = 'Execute tests in parallel on multiple iOS Simulators' | ||
s.homepage = 'https://github.com/plu/pxctest' | ||
s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
s.author = { 'Johannes Plunien' => 'plu@pqpq.de' } | ||
s.source = { :http => "#{s.homepage}/releases/download/#{s.version}/portable_pxctest.zip" } | ||
s.preserve_paths = '*' | ||
end |
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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
PXCTEST_PLIST='pxctest/info.plist' | ||
NEW_VERSION=$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "$PXCTEST_PLIST") | ||
|
||
echo "$NEW_VERSION" |
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,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
brew update && brew bump-formula-pr --tag=$(shell git describe --tags) --revision=$(shell git rev-parse HEAD) pxctest | ||
pod trunk push pxctest.podspec |
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,46 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
PXCTEST_PLIST='pxctest/info.plist' | ||
NEW_VERSION="$(./scripts/get_version.sh)" | ||
|
||
echo "New version is $NEW_VERSION" | ||
|
||
NEW_RELEASE_DIR="build/releases/$NEW_VERSION" | ||
|
||
echo "Cleaning release directory" | ||
|
||
rm -rf "$NEW_RELEASE_DIR" | ||
|
||
BUILT_BIN_NAME='pxctest' | ||
BUILT_BIN_PATH="$NEW_RELEASE_DIR/bin/$BUILT_BIN_NAME" | ||
BUILT_FRAMEWORK_NAME='PXCTestKit.framework' | ||
BUILT_FRAMEWORK_PATH="$NEW_RELEASE_DIR/Frameworks/$BUILT_FRAMEWORK_NAME" | ||
LICENSE_NAME='LICENSE' | ||
LICENSE_PATH="./$LICENSE_NAME" | ||
|
||
echo "Building to $NEW_RELEASE_DIR" | ||
|
||
./scripts/build.sh "$NEW_RELEASE_DIR" | ||
|
||
echo "Creating portable release" | ||
|
||
PORTABLE_RELEASE_DIR="$NEW_RELEASE_DIR/portable_pxctest" | ||
|
||
mkdir -p "$PORTABLE_RELEASE_DIR" | ||
|
||
cp -f "$BUILT_BIN_PATH" "$PORTABLE_RELEASE_DIR" | ||
cp -fR "$BUILT_FRAMEWORK_PATH" "$PORTABLE_RELEASE_DIR" | ||
cp -f "$LICENSE_PATH" "$PORTABLE_RELEASE_DIR" | ||
|
||
(cd "$PORTABLE_RELEASE_DIR"; zip -yr - "$BUILT_BIN_NAME" "$BUILT_FRAMEWORK_NAME" "$LICENSE_NAME") > "$PORTABLE_RELEASE_DIR.zip" | ||
|
||
echo "Tagging release" | ||
|
||
git commit -a -m "release $NEW_VERSION" | ||
git tag -a "$NEW_VERSION" -m "release $NEW_VERSION" | ||
git push origin master | ||
git push origin "$NEW_VERSION" | ||
|
||
echo "Release complete; see https://github.com/plu/pxctest#release-version-update for next steps." |