Skip to content

Commit

Permalink
ci: set GOFLAGS=-mod=vendor env variable
Browse files Browse the repository at this point in the history
This ensures that the "go test" run uses the vendored libraries instead of
downloading the libs
  • Loading branch information
fho committed Nov 19, 2018
1 parent 4390805 commit 0588ae2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
docker:
- image: circleci/golang:1
environment:
GOFLAGS: -mod=vendor
TEST_RESULTS: /tmp/test-results
BAUR_POSTGRESQL_URL: "postgres://root@localhost:5432/baur?sslmode=disable"

Expand All @@ -21,7 +22,7 @@ jobs:
- run:
name: Preparing Test Environment
command: |
go get github.com/jstemmer/go-junit-report
GO111MODULE=off go get github.com/jstemmer/go-junit-report
mkdir -p ${TEST_RESULTS}
Expand All @@ -38,7 +39,7 @@ jobs:
- run:
name: Creating Database Tables with baur init db
command:
go run -mod=vendor cmd/baur/main.go init db -- $BAUR_POSTGRESQL_URL
go run cmd/baur/main.go init db -- $BAUR_POSTGRESQL_URL

- run:
name: Run Tests
Expand Down

0 comments on commit 0588ae2

Please sign in to comment.