Skip to content

Commit

Permalink
Deploy scripts should fail on errors, update root swift version to 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Jan 26, 2019
1 parent eed20d0 commit 6f29340
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0
4.2
5 changes: 1 addition & 4 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
if [ -z $BINTRAY_USER ]; then
echo "Must define BINTRAY_USER and BINTRAY_KEY env var before deploying. See https://github.com/ionic-team/capacitor/blob/master/.github/CONTRIBUTING.md"
exit 1
fi
set -e

LERNA_JSON=`cat lerna.json`;
export LERNA_VERSION="$(node -pe "JSON.parse(\`$LERNA_JSON\`)['version']")"
Expand Down
2 changes: 2 additions & 0 deletions scripts/deploy/pods.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set -e

echo "Deploying iOS Pods v$POD_VERSION"

# Publish CapacitorCordova first
Expand Down
2 changes: 2 additions & 0 deletions scripts/generate.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set -e

LERNA_JSON=`cat lerna.json`;
export LERNA_VERSION="$(node -pe "JSON.parse(\`$LERNA_JSON\`)['version']")"

Expand Down
5 changes: 5 additions & 0 deletions scripts/prerelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ set -e

[ -z "$ANDROID_HOME" ] && echo "ANDROID_HOME is not set. Please set it before running this script." && exit 1;

if [ -z $BINTRAY_USER ]; then
echo "Must define BINTRAY_USER and BINTRAY_KEY env var before deploying. See https://github.com/ionic-team/capacitor/blob/master/.github/CONTRIBUTING.md"
exit 1
fi

# Verify pods are good
pod spec lint --allow-warnings Capacitor.podspec
pod spec lint --allow-warnings CapacitorCordova.podspec
Expand Down

0 comments on commit 6f29340

Please sign in to comment.