Skip to content
Snippets Groups Projects
Commit 40dc503a authored by Brian Peiris's avatar Brian Peiris
Browse files

have travis check for uncommited yarn.lock changes

parent f104fc6a
No related branches found
No related tags found
No related merge requests found
...@@ -5,4 +5,6 @@ before_install: ...@@ -5,4 +5,6 @@ before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.5.1 - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.5.1
- export PATH="$HOME/.yarn/bin:$PATH" - export PATH="$HOME/.yarn/bin:$PATH"
install: yarn install: yarn
script: yarn lint script:
- yarn lint
- ./scripts/check-yarn-lock.sh
#!/usr/bin/env bash
if [ `git diff yarn.lock | wc -l` -ne 0 ]; then
echo ""
tput setaf 1
echo "!! UNCOMMITED YARN.LOCK CHANGES !!"
tput sgr0
echo ""
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment