gitlab-ci: test
This commit is contained in:
parent
29de0c7526
commit
1148005c00
1 changed files with 17 additions and 22 deletions
|
@ -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..."
|
||||
# - ls dist
|
||||
# # environment:
|
||||
# # name: production
|
||||
# # url: https://vtt.f3l.de/
|
||||
# only:
|
||||
# - master
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue