add circle CI config

pull/1/head
kun 2018-09-03 12:22:39 +08:00
parent 6b5bf5363a
commit 53d0c9e3d8
2 changed files with 23 additions and 0 deletions

15
.circleci/config.yml Normal file
View File

@ -0,0 +1,15 @@
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
build:
docker:
# specify the version
- image: circleci/golang:1.11
working_directory: /go/src/github.com/goproxyio/goproxy/
steps:
- checkout
# specify any bash command here prefixed with `run: `
- run: bash circle-test.sh

8
circle-test.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
export GO111MODULE=on
go mod download
go mod verify
go test -timeout 60s -v ./...
# build
go build -v -mod readonly