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/
|
- node_modules/
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- install
|
- deps
|
||||||
- lint
|
|
||||||
- test
|
- test
|
||||||
- build
|
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
install-dependencies:
|
deps:
|
||||||
stage: install
|
stage: deps
|
||||||
script:
|
script: yarn install --ignore-scripts
|
||||||
- yarn install --ignore-scripts
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- node_modules/
|
|
||||||
|
|
||||||
lint-js:
|
lint-js:
|
||||||
stage: lint
|
stage: test
|
||||||
script: yarn lint:js
|
script: yarn lint:js
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
|
@ -38,7 +32,7 @@ lint-js:
|
||||||
- ".eslintrc.js"
|
- ".eslintrc.js"
|
||||||
|
|
||||||
lint-sass:
|
lint-sass:
|
||||||
stage: lint
|
stage: test
|
||||||
script: yarn lint:sass
|
script: yarn lint:sass
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
|
@ -69,13 +63,13 @@ nginx-test:
|
||||||
- "installation/mastodon.conf"
|
- "installation/mastodon.conf"
|
||||||
|
|
||||||
build-production:
|
build-production:
|
||||||
stage: build
|
stage: test
|
||||||
script: yarn build
|
script: yarn build
|
||||||
variables:
|
variables:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- static
|
- static
|
||||||
|
|
||||||
docs-deploy:
|
docs-deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
@ -108,6 +102,7 @@ review:
|
||||||
url: https://$CI_COMMIT_REF_SLUG.git.soapbox.pub
|
url: https://$CI_COMMIT_REF_SLUG.git.soapbox.pub
|
||||||
script:
|
script:
|
||||||
- npx -y surge static $CI_COMMIT_REF_SLUG.git.soapbox.pub
|
- npx -y surge static $CI_COMMIT_REF_SLUG.git.soapbox.pub
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
Loading…
Reference in a new issue