From 051e21107c9d2da847519c8b2f6d296395e64d27 Mon Sep 17 00:00:00 2001 From: Adam Ruka Date: Wed, 29 Jul 2020 00:41:14 +0000 Subject: [PATCH] build: skip compatibility check for Gitpod --- .gitpod.yml | 2 +- build.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 92cf51b5ccdd3..61bf069e34517 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,6 +1,6 @@ image: jsii/superchain tasks: - - init: yarn build --skip-test --no-bail --skip-prereqs + - init: yarn build --skip-test --no-bail --skip-prereqs --skip-compat vscode: extensions: diff --git a/build.sh b/build.sh index 754f7ce10111e..a17b80797c8ec 100755 --- a/build.sh +++ b/build.sh @@ -4,6 +4,7 @@ set -euo pipefail bail="--bail" runtarget="build+test" check_prereqs="true" +check_compat="true" while [[ "${1:-}" != "" ]]; do case $1 in -h|--help) @@ -22,6 +23,9 @@ while [[ "${1:-}" != "" ]]; do --skip-prereqs) check_prereqs="false" ;; + --skip-compat) + check_compat="false" + ;; *) echo "Unrecognized parameter: $1" exit 1 @@ -70,6 +74,8 @@ echo "========================================================================== echo "building..." time lerna run $bail --stream $runtarget || fail -/bin/bash scripts/check-api-compatibility.sh +if [ "$check_compat" == "true" ]; then + /bin/bash scripts/check-api-compatibility.sh +fi touch $BUILD_INDICATOR