add 3 integration-tests

This commit is contained in:
6543 2022-06-10 17:39:12 +02:00
parent bb8eb32ee2
commit 8e831db1e9
2 changed files with 87 additions and 0 deletions

View file

@ -22,3 +22,19 @@ pipeline:
image: golang:1.18
commands:
- go build
integration-tests:
image: golang:1.18
detach: true
commands:
- go run . --verbose &
- pid=$!
- sleep 10s
- cd integration && go test -tags integration ./...
- kill $pid
environment:
- ACME_API=https://acme.mock.directory
- ACME_ACCEPT_TERMS=true
- PAGES_DOMAIN=localhost.mock.directory
- RAW_DOMAIN=raw.localhost.mock.directory
- PORT=4430