21 lines
337 B
YAML
21 lines
337 B
YAML
# This file is a template, and might need editing before it works on your project.
|
|
image: golang:latest
|
|
|
|
stages:
|
|
- test
|
|
#- build
|
|
- deploy
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- go test -race
|
|
|
|
pages:
|
|
stage: deploy
|
|
script:
|
|
- mkdir public
|
|
- echo "<body>go/log page</body>" >publi/index.html
|
|
artifacts:
|
|
paths:
|
|
- public
|