ds4/.gitlab-ci.yml
2020-12-27 15:12:57 +01:00

69 lines
1.1 KiB
YAML

image: node:latest
stages:
- prepare
- test
- build
- bar
cache: &global_cache
key:
files:
- package-lock.json
policy: pull
untracked: true
paths:
- node_modules/
install-dependencies:
stage: prepare
script:
- npm ci
cache:
<<: *global_cache
policy: pull-push
only:
changes:
- package-lock.json
lint:
stage: test
script:
- npm run lint
cache:
<<: *global_cache
# Test:
# stage: Test
# script:
# - npm test
# cache:
# <<: *global_cache
foo:
stage: bar
script:
- echo "Test!"
build:
stage: build
script:
- npm run build
cache:
<<: *global_cache
artifacts:
paths:
- dist/
expire_in: 1 week
# deploy:
# stage: deploy
# # dependencies:
# # - build
# script:
# - echo "Deploying to production..."
# - ls dist
# # environment:
# # name: production
# # url: https://vtt.f3l.de/
# only:
# - master