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.
pleroma-fe/.gitlab-ci.yml

48 lines
947 B

7 years ago
# This file is a template, and might need editing before it works on your project.
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
2 years ago
image: node:16
7 years ago
stages:
7 years ago
- lint
- build
- test
- deploy
7 years ago
lint:
stage: lint
script:
- yarn
- npm run lint
- npm run stylelint
7 years ago
7 years ago
test:
stage: test
5 years ago
variables:
APT_CACHE_DIR: apt-cache
7 years ago
script:
5 years ago
- mkdir -pv $APT_CACHE_DIR && apt-get -qq update
- apt install firefox-esr -y --no-install-recommends
- firefox --version
- yarn
- yarn unit
7 years ago
build:
stage: build
7 years ago
script:
- yarn
7 years ago
- npm run build
7 years ago
artifacts:
paths:
- dist/
docs-deploy:
stage: deploy
image: alpine:latest
only:
- develop@pleroma/pleroma-fe
before_script:
- apk add curl
script:
- curl -X POST -F"token=$DOCS_PIPELINE_TRIGGER" -F'ref=master' https://git.pleroma.social/api/v4/projects/673/trigger/pipeline