2017-07-23 16:52:11 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd frontend
|
2018-03-21 17:30:24 +01:00
|
|
|
if ! npm run lint
|
|
|
|
then
|
|
|
|
echo "Frontend lint failed"
|
|
|
|
exit 1
|
2018-03-23 16:37:11 +01:00
|
|
|
fi
|
|
|
|
cd ..
|
2018-03-21 17:30:24 +01:00
|
|
|
|
2018-04-09 13:30:04 +02:00
|
|
|
cd frontend
|
|
|
|
if ! npm run build
|
|
|
|
then
|
|
|
|
echo "Frontend build failed"
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
rm -rf dist/
|
|
|
|
cd ..
|
|
|
|
|
2018-03-23 16:37:11 +01:00
|
|
|
cd backend/src
|
2018-03-21 17:30:24 +01:00
|
|
|
if ! composer run-script lint
|
|
|
|
then
|
|
|
|
echo "Backend lint failed"
|
2018-04-09 13:30:04 +02:00
|
|
|
exit 3
|
2018-03-21 17:30:24 +01:00
|
|
|
fi
|
2018-03-30 10:02:25 +02:00
|
|
|
cd ../..
|
|
|
|
|
|
|
|
cd backend/test
|
|
|
|
if ! ./test.sh all
|
|
|
|
then
|
|
|
|
echo "Backend test failed"
|
2018-04-09 13:30:04 +02:00
|
|
|
exit 4
|
2018-03-30 10:02:25 +02:00
|
|
|
fi
|
|
|
|
cd ../..
|
2018-03-21 17:30:24 +01:00
|
|
|
|
2018-03-30 10:02:25 +02:00
|
|
|
exit 0
|