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
- test
- build
- bar
- deploy
cache: &global_cache
key:
@ -40,30 +40,25 @@ lint:
# 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..."
# 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
# environment:
# name: production
# url: https://vtt.f3l.de/
only:
- master