Add travis check for omitting dist in development branch
This commit is contained in:
parent
1e1a548459
commit
6fd4389887
@ -2,5 +2,6 @@ language: node_js
|
|||||||
node_js: lts/*
|
node_js: lts/*
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- bash .travis/omit-dist.sh
|
||||||
- npm run lint
|
- npm run lint
|
||||||
- npm run build
|
- npm run build
|
||||||
|
5
.travis/omit-dist.sh
Executable file
5
.travis/omit-dist.sh
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user