**WORK IN PROGRESS** golang API client for interacting with the jschan imageboard API.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
626 B

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