You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
soapbox/.gitlab-ci.yml

63 lines
939 B

image: node:12
variables:
NODE_ENV: test
cache:
key:
files:
- yarn.lock
paths:
- node_modules
stages:
- lint
- test
- build
- deploy-docs
before_script:
- yarn
lint-js:
stage: lint
script: yarn test:lint:js
lint-sass:
stage: lint
script: yarn test:lint:sass
jest:
stage: test
script: yarn test:jest
build-production:
stage: build
script: yarn build
variables:
NODE_ENV: production
artifacts:
paths:
- static
deploy-docs:
stage: deploy-docs
script:
- curl -X POST -F"token=$DOCS_TRIGGER_PIPELINE" -F"ref=master" https://gitlab.com/api/v4/projects/15685485/trigger/pipeline
only:
refs:
- develop
changes:
- docs/*
# Supposed to fail when translations are outdated, instead always passes
#
# i18n:
# stage: build
# script: yarn manage:translations
# variables:
# NODE_ENV: development
# before_script:
# - yarn
# - yarn build