2020-03-09 15:35:19 +01:00
|
|
|
image: php:7.4-alpine
|
2020-03-09 14:58:40 +01:00
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- frontend/node_modules
|
2020-03-09 15:35:19 +01:00
|
|
|
- backend/vendor
|
2020-03-09 14:58:40 +01:00
|
|
|
|
|
|
|
before_script:
|
2020-03-09 15:35:19 +01:00
|
|
|
- apk add --no-cache nodejs npm php composer php-mbstring php-iconv php-json php-openssl php-pdo php-xml php-tokenizer php-ctype
|
|
|
|
- ( cd backend && composer install )
|
|
|
|
- ( cd frontend && npm install )
|
2020-03-09 14:58:40 +01:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- lint
|
|
|
|
- test
|
2020-03-09 15:35:19 +01:00
|
|
|
|
|
|
|
BackendLint:
|
|
|
|
stage: lint
|
|
|
|
script:
|
2020-03-09 15:40:00 +01:00
|
|
|
- cd backend && ./vendor/bin/grumphp run
|
2020-03-09 15:35:19 +01:00
|
|
|
allow_failure: true
|
2020-03-09 14:58:40 +01:00
|
|
|
|
|
|
|
FrontendLint:
|
|
|
|
stage: lint
|
|
|
|
script:
|
|
|
|
- cd frontend && npm run lint
|
|
|
|
allow_failure: true
|
|
|
|
|
|
|
|
FrontendTest:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- cd frontend && npm test
|