Merge branch 'simplify-ci' into 'develop'
Simplify CI See merge request soapbox-pub/soapbox-fe!1450
This commit is contained in:
commit
e7f5df31b0
1 changed files with 9 additions and 14 deletions
|
@ -11,22 +11,16 @@ cache:
|
|||
- node_modules/
|
||||
|
||||
stages:
|
||||
- install
|
||||
- lint
|
||||
- deps
|
||||
- test
|
||||
- build
|
||||
- deploy
|
||||
|
||||
install-dependencies:
|
||||
stage: install
|
||||
script:
|
||||
- yarn install --ignore-scripts
|
||||
artifacts:
|
||||
paths:
|
||||
- node_modules/
|
||||
deps:
|
||||
stage: deps
|
||||
script: yarn install --ignore-scripts
|
||||
|
||||
lint-js:
|
||||
stage: lint
|
||||
stage: test
|
||||
script: yarn lint:js
|
||||
only:
|
||||
changes:
|
||||
|
@ -38,7 +32,7 @@ lint-js:
|
|||
- ".eslintrc.js"
|
||||
|
||||
lint-sass:
|
||||
stage: lint
|
||||
stage: test
|
||||
script: yarn lint:sass
|
||||
only:
|
||||
changes:
|
||||
|
@ -69,13 +63,13 @@ nginx-test:
|
|||
- "installation/mastodon.conf"
|
||||
|
||||
build-production:
|
||||
stage: build
|
||||
stage: test
|
||||
script: yarn build
|
||||
variables:
|
||||
NODE_ENV: production
|
||||
artifacts:
|
||||
paths:
|
||||
- static
|
||||
- static
|
||||
|
||||
docs-deploy:
|
||||
stage: deploy
|
||||
|
@ -108,6 +102,7 @@ review:
|
|||
url: https://$CI_COMMIT_REF_SLUG.git.soapbox.pub
|
||||
script:
|
||||
- npx -y surge static $CI_COMMIT_REF_SLUG.git.soapbox.pub
|
||||
allow_failure: true
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
|
|
Loading…
Reference in a new issue