start server for integration tests in code

This commit is contained in:
6543 2022-06-10 19:26:06 +02:00
parent 94bc8c854e
commit a961655d2c
3 changed files with 102 additions and 73 deletions

View file

@ -30,14 +30,4 @@ pipeline:
image: golang:1.18
detach: true
commands:
- go run . --verbose &
- pid=$!
- sleep 10s
- go test -tags integration codeberg.org/codeberg/pages/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