diff --git a/.circleci/config.yml b/.circleci/config.yml index f9c5cb7..a07bc24 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,19 +5,16 @@ jobs: - image: circleci/golang:1.12 environment: GO111MODULE: "on" + GOPROXY: "https://proxy.golang.org" steps: - checkout - - run: - name: "Prepare Artifact Store" - command: | - mkdir -p /tmp/artifacts - restore_cache: keys: - v1-mod-cache - run: name: "Tests" command: | - .circleci/test.sh + go test ./... - save_cache: key: v1-mod-cache paths: diff --git a/.circleci/test.sh b/.circleci/test.sh deleted file mode 100755 index a53856a..0000000 --- a/.circleci/test.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -set -e -echo "" > coverage.txt - -for d in $(go list ./... | grep -v vendor); do - go test -coverprofile=/tmp/artifacts/profile.out -covermode=atomic $d - if [ -f /tmp/artifacts/profile.out ]; then - cat /tmp/artifacts/profile.out >> /tmp/artifacts/coverage.txt - rm /tmp/artifacts/profile.out - fi -done