Skip to content

Commit

Permalink
try again for gopath...
Browse files Browse the repository at this point in the history
  • Loading branch information
jhump committed May 29, 2021
1 parent db14e3e commit b27415b
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .circleci/config.yml
@@ -1,40 +1,33 @@
shared_configs:
simple_job_steps: &simple_job_steps
- checkout
#TODO: caching config so we don't accidentally try to re-use
#cache across versions of Go...

#- restore_cache:
# keys:
# - go-mod-v4-{{ checksum "go.sum" }}
#- run:
# name: Install Dependencies
# command: go mod download
#- save_cache:
# key: go-mod-v4-{{ checksum "go.sum" }}
# paths:
# - "/go/pkg/mod"
- run:
name: Run tests
command: |
#mkdir -p /tmp/test-reports
#gotestsum --junitfile /tmp/test-reports/unit-tests.xml
make deps test
#- store_test_results:
# path: /tmp/test-reports
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
jobs:
build-1-12-gopath:
working_directory: ~/gopath/github.com/jhump/protoreflect
working_directory: ~/repo
docker:
- image: circleci/golang:1.12
environment:
GO111MODULE: "off"
GOPATH: ~/gopath
steps: *simple_job_steps
steps:
- checkout
- run:
name: Prepare GOPATH
command: |
mkdir -p ~/gopath/github.com/jhump/protoreflect
mv ~/repo/* ~/gopath/github.com/jhump/protoreflect/
- run:
name: Run tests
command: |
cd ~/gopath/github.com/jhump/protoreflect
GOPATH=~/gopath make deps test
build-1-12:
working_directory: ~/repo
Expand Down

0 comments on commit b27415b

Please sign in to comment.