diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..51d6891 --- /dev/null +++ b/.circleci/config.yml @@ -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 diff --git a/circle-test.sh b/circle-test.sh new file mode 100644 index 0000000..2773986 --- /dev/null +++ b/circle-test.sh @@ -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 \ No newline at end of file