diff --git a/scripts/build-csharp.sh b/scripts/build-csharp.sh new file mode 100644 index 000000000..affefb72d --- /dev/null +++ b/scripts/build-csharp.sh @@ -0,0 +1,23 @@ + #!/bin/bash + set -euo pipefail + scriptdir=$(cd $(dirname $0) && pwd) + + # install CDK CLI from npm, so that npx can find it later + cd $scriptdir/../csharp + npm install + +# Find and build all CSharp projects +for projFile in $(find $scriptdir/../csharp -name cdk.json); do + ( + echo "==============================" + echo "building project: $projFile" + echo "==============================" + + cd $(dirname $projFile) + if [[ -f DO_NOT_AUTOTEST ]]; then exit 0; fi + + dotnet build src + + $scriptdir/synth.sh + ) +done \ No newline at end of file diff --git a/scripts/build-java.sh b/scripts/build-java.sh index 4db4fff41..de5d2b883 100755 --- a/scripts/build-java.sh +++ b/scripts/build-java.sh @@ -9,8 +9,13 @@ npm install # Find and build all Maven projects for pomFile in $(find $scriptdir/../java -name pom.xml); do ( + echo "==============================" + echo "building project: $(dirname $pomFile)" + echo "==============================" + cd $(dirname $pomFile) - echo "Building project at $(dirname $pomFile)" + if [[ -f DO_NOT_AUTOTEST ]]; then exit 0; fi + mvn compile test $scriptdir/synth.sh diff --git a/scripts/build-npm.sh b/scripts/build-npm.sh index 4c9b07fad..3c619d38b 100755 --- a/scripts/build-npm.sh +++ b/scripts/build-npm.sh @@ -22,9 +22,11 @@ verify_star_dependencies() { # Find and build all NPM projects for pkgJson in $(find typescript -name package.json | grep -v node_modules); do ( - echo "Building project at $(dirname $pkgJson)" - cd $(dirname $pkgJson) + echo "==============================" + echo "building project: $(dirname $pkgJson)" + echo "==============================" + cd $(dirname $pkgJson) if [[ -f DO_NOT_AUTOTEST ]]; then exit 0; fi verify_star_dependencies diff --git a/scripts/build.sh b/scripts/build.sh index 24fdae31c..b53373ca8 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -5,3 +5,4 @@ scriptdir=$(cd $(dirname $0) && pwd) $scriptdir/build-npm.sh $scriptdir/build-java.sh $scriptdir/build-python.sh +$scriptdir/build-csharp.sh \ No newline at end of file