...

Text file src/jschan/.gitlab-ci.yml

Documentation: jschan

     1image: golang:latest
     2
     3stages:
     4  - test
     5  - build
     6  - deploy
     7
     8format:
     9  stage: test
    10  script:
    11    - apt update -y && apt install gcc xorg-dev libgl1-mesa-dev -y
    12    - go fmt $(go list ./... | grep -v /vendor/)
    13    - go vet $(go list ./... | grep -v /vendor/)
    14    - go test -race $(go list ./... | grep -v /vendor/)
    15
    16compile:
    17  stage: build
    18  script:
    19    - mkdir -p mybinaries
    20    - go build -o mybinaries ./...
    21  # artifacts:
    22  #   paths:
    23  #     - mybinaries
    24
    25pages:
    26  stage: deploy
    27  script:
    28    - go install golang.org/x/tools/cmd/godoc@latest     
    29    - mkdir public
    30    - GO_MODULE=jschan GO_DOC_HTML_OUTPUT=public ./godoc_static.sh
    31  artifacts:
    32    paths:
    33      - public

View as plain text