aboutsummaryrefslogtreecommitdiffstats
path: root/screwdriver/detect-what-to-build.sh
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@verizonmedia.com>2021-10-01 09:03:06 +0200
committerArnstein Ressem <aressem@verizonmedia.com>2021-10-01 09:03:06 +0200
commitc05960e0146829b27aee369270b1ee6379b18fa1 (patch)
treeadc89604118bf92396c537b93304cba0cd5f16e4 /screwdriver/detect-what-to-build.sh
parent4d1754c799bc15e1851466f79672db0e77d9aff8 (diff)
Build the Go code in main and PR builds.
Diffstat (limited to 'screwdriver/detect-what-to-build.sh')
-rwxr-xr-xscrewdriver/detect-what-to-build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/screwdriver/detect-what-to-build.sh b/screwdriver/detect-what-to-build.sh
index 608dfda9e0e..401f78e0312 100755
--- a/screwdriver/detect-what-to-build.sh
+++ b/screwdriver/detect-what-to-build.sh
@@ -26,7 +26,9 @@ elif [[ -z $FILES ]]; then
elif ! grep -v -E "(\.h|\.hh|\.hxx|\.c|\.cpp|\.cxx)$" <<< "$FILES" &> /dev/null; then
SHOULD_BUILD=cpp
elif ! grep -v -E "(\.java)$" <<< "$FILES" &> /dev/null; then
- SHOULD_BUILD=java
+ SHOULD_BUILD=java
+elif ! grep -v -E "(\.go)$" <<< "$FILES" &> /dev/null; then
+ SHOULD_BUILD=go
else
SHOULD_BUILD=all
fi