aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/omit-dist.sh
diff options
context:
space:
mode:
Diffstat (limited to '.travis/omit-dist.sh')
-rwxr-xr-x.travis/omit-dist.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/.travis/omit-dist.sh b/.travis/omit-dist.sh
new file mode 100755
index 00000000..f107a6b9
--- /dev/null
+++ b/.travis/omit-dist.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+if [ $TRAVIS_BRANCH == "develop" ] && $(git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE "^(demo/)?dist/"); then
+ echo 'Build output ("dist" and "demo/dist") not permitted in develop' >&2
+ exit 1
+fi