diff --git a/package.json b/package.json index f815827f9f..7dd58b48b2 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,11 @@ "package-windows": "lerna run package && tools\\collect-dist.bat", "bootstrap-plugin-cache": "./test/run-against-dist ./tools/bootstrap-plugin-cache.sh", "examples:integration": "test/run-against-dist tools/build-examples.sh", - "examples:integration:java": "test/run-against-dist tools/build-examples-java.sh", + "examples:integration:java": "test/run-against-dist tools/build-examples-sequential.sh java", "examples:integration:csharp": "test/run-against-dist tools/build-examples.sh csharp", "examples:integration:python": "test/run-against-dist tools/build-examples.sh python", "examples:integration:typescript": "test/run-against-dist tools/build-examples.sh typescript", - "examples:integration:go": "test/run-against-dist tools/build-examples.sh go", + "examples:integration:go": "test/run-against-dist tools/build-examples-sequential.sh go", "test": "lerna run --scope cdktf* --scope @cdktf* test", "watch": "lerna run --parallel --stream --scope cdktf* watch-preserve-output", "link-packages": "lerna exec --scope cdktf* --scope @cdktf* yarn link", diff --git a/tools/build-examples-java.sh b/tools/build-examples-sequential.sh similarity index 76% rename from tools/build-examples-java.sh rename to tools/build-examples-sequential.sh index 6879143487..10cb052c21 100755 --- a/tools/build-examples-java.sh +++ b/tools/build-examples-sequential.sh @@ -7,7 +7,9 @@ cd $(dirname $0)/.. # Disable spinner even when we have a TTY export CI='1' -npx lerna run --stream --concurrency 1 --no-bail --scope @examples/java* reinstall -npx lerna run --stream --concurrency 1 --no-bail --scope @examples/java* build -npx lerna run --stream --concurrency 1 --no-bail --scope @examples/java* synth +BUILD_TARGET=$1 + +npx lerna run --stream --concurrency 1 --no-bail --scope @examples/${BUILD_TARGET}* reinstall +npx lerna run --stream --concurrency 1 --no-bail --scope @examples/${BUILD_TARGET}* build +npx lerna run --stream --concurrency 1 --no-bail --scope @examples/${BUILD_TARGET}* synth