gitlab-ci: test

This commit is contained in:
Johannes Loher 2020-12-27 15:15:57 +01:00
parent 29de0c7526
commit 1148005c00

View file

@ -4,7 +4,7 @@ stages:
- prepare - prepare
- test - test
- build - build
- bar - deploy
cache: &global_cache cache: &global_cache
key: key:
@ -40,30 +40,25 @@ lint:
# cache: # cache:
# <<: *global_cache # <<: *global_cache
foo:
stage: bar
script:
- echo "Test!"
build: build:
stage: build stage: build
script: script:
- npm run build - npm run build
cache: cache:
<<: *global_cache <<: *global_cache
artifacts: # artifacts:
paths: # paths:
- dist/ # - dist/
expire_in: 1 week # expire_in: 1 week
# deploy: deploy:
# stage: deploy stage: deploy
# # dependencies: # dependencies:
# # - build # - build
# script: script:
# - echo "Deploying to production..." - echo "Deploying to production..."
# - ls dist # - ls dist
# # environment: # environment:
# # name: production # name: production
# # url: https://vtt.f3l.de/ # url: https://vtt.f3l.de/
# only: only:
# - master - master