pleroma-fe/.gitlab-ci.yml

48 行
947 B
YAML
Raw 通常表示 履歴

2016-11-22 21:49:53 +09:00
# 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/
2022-07-18 12:48:11 +09:00
image: node:16
2016-11-22 21:49:53 +09:00
2017-03-02 04:42:45 +09:00
stages:
2017-03-09 16:58:17 +09:00
- lint
2017-03-02 04:42:45 +09:00
- build
- test
- deploy
2017-03-02 04:42:45 +09:00
2017-03-09 16:58:17 +09:00
lint:
stage: lint
script:
- yarn
- npm run lint
- npm run stylelint
2017-03-09 16:58:17 +09:00
2016-11-22 21:49:53 +09:00
test:
2017-03-02 04:46:07 +09:00
stage: test
2019-04-29 02:14:35 +09:00
variables:
APT_CACHE_DIR: apt-cache
2016-11-22 21:49:53 +09:00
script:
2019-04-29 02:14:35 +09:00
- mkdir -pv $APT_CACHE_DIR && apt-get -qq update
- apt install firefox-esr -y --no-install-recommends
- firefox --version
2017-02-16 21:48:36 +09:00
- yarn
2019-11-15 06:46:19 +09:00
- yarn unit
2017-02-19 05:26:17 +09:00
2016-11-22 21:49:53 +09:00
build:
2017-03-02 04:46:07 +09:00
stage: build
2016-11-22 21:49:53 +09:00
script:
2017-02-16 21:48:36 +09:00
- yarn
2016-11-22 22:04:54 +09:00
- npm run build
2016-12-08 23:55:12 +09:00
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