2017-07-23 14:52:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd frontend
|
2018-03-21 16:30:24 +00:00
|
|
|
if ! npm run lint
|
|
|
|
then
|
|
|
|
echo "Frontend lint failed"
|
|
|
|
exit 1
|
2018-03-23 15:37:11 +00:00
|
|
|
fi
|
|
|
|
cd ..
|
2018-03-21 16:30:24 +00:00
|
|
|
|
2018-03-23 15:37:11 +00:00
|
|
|
cd backend/src
|
2018-03-21 16:30:24 +00:00
|
|
|
if ! composer run-script lint
|
|
|
|
then
|
|
|
|
echo "Backend lint failed"
|
|
|
|
exit 2
|
|
|
|
fi
|
2018-03-23 15:37:11 +00:00
|
|
|
cd ..
|
2018-03-21 16:30:24 +00:00
|
|
|
|
|
|
|
exit 0
|