CI: add stage test

This commit is contained in:
Sonja Happ 2019-04-24 10:30:45 +02:00
parent bb2f0dfb35
commit 6ff38ffcfc

View file

@ -6,6 +6,7 @@ variables:
stages: stages:
- prepare - prepare
- build - build
- test
- deploy - deploy
# Stage: prepare # Stage: prepare
@ -52,6 +53,22 @@ build:backend:
- go mod tidy - go mod tidy
- go build - go build
# Stage: test
##############################################################################
test:backend:
stage: test
tags:
- docker
image: villaswebbackendgo:debian
script:
- go mod tidy
- cd common
- go test
dependencies:
- build:backend
# Stage: deploy # Stage: deploy
############################################################################## ##############################################################################