From 938b3d33190298a2bab8c1f08554bc60c073bc66 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 10 Sep 2019 15:40:22 -0700 Subject: [PATCH] build: Simplify Circle-CI run; use Go Module proxy --- .circleci/config.yml | 7 ++----- .circleci/test.sh | 12 ------------ 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100755 .circleci/test.sh 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