2021-01-27 03:18:16 -05:00
|
|
|
# Golang CircleCI 2.0 configuration file
|
|
|
|
#
|
|
|
|
# Check https://circleci.com/docs/2.0/language-go/ for more details
|
2020-02-02 18:23:32 -05:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2021-01-27 03:18:16 -05:00
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
- image: circleci/golang:1.15.6
|
|
|
|
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
|
|
|
|
steps:
|
|
|
|
- checkout
|
2021-02-15 09:02:59 -05:00
|
|
|
- run: sudo apt-get install -y libgtk-3-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl1-mesa-dev libsdl2-dev libasound2-dev > /dev/null 2>&1
|
2021-01-27 03:18:16 -05:00
|
|
|
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
|
|
|
|
- run: go get -v -t -d ./...
|
|
|
|
- run: go build .
|
|
|
|
- run: xvfb-run --auto-servernum go test -v -race ./...
|
|
|
|
- run: golangci-lint run ./...
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
|
|
|
- build
|