Add .gitlab-ci.yml

This commit is contained in:
Alex Gleason 2020-04-14 13:07:40 -05:00
parent 3a6f825a81
commit b34946fc30
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 32 additions and 1 deletions

31
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,31 @@
image: node:12
variables:
NODE_ENV: test
stages:
- lint
- build
- test
before_script:
- yarn
lint-js:
stage: lint
script: yarn test:lint:js
lint-sass:
stage: lint
script: yarn test:lint:sass
build-development:
stage: build
script: yarn build:development
artifacts:
paths:
- public/packs
jest:
stage: test
script: yarn test:jest

View file

@ -62,7 +62,7 @@ The following commands are supported.
- `yarn manage:translations` - Normalizes translation files. Should always be run after editing i18n strings.
#### Tests
- `yarn test` - Runs all tests (recommended for CI).
- `yarn test` - Runs all tests.
- `yarn test:lint` - Runs all linter tests.