image: golang:latest stages: - test - build - deploy format: stage: test script: - go fmt $(go list ./... | grep -v /vendor/) - go vet $(go list ./... | grep -v /vendor/) - go test -race $(go list ./... | grep -v /vendor/) compile: stage: build script: - mkdir -p mybinaries - go build -o mybinaries ./... artifacts: paths: - mybinaries pages: stage: deploy script: - go install golang.org/x/tools/cmd/godoc@latest - mkdir public - GO_MODULE=jschan ./godoc_static.sh - cp -r godoc/pkg/jschan/* public artifacts: paths: - public/pkg/jschan