From 12847913f8f59a95a883053ec10bf8aa702289c9 Mon Sep 17 00:00:00 2001 From: Prateek Malhotra Date: Fri, 2 Nov 2018 15:39:22 -0400 Subject: [PATCH] Build update --- .travis.yml | 2 +- Makefile | 2 +- travis-setup.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 100b152..f65957a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ install: - make get script: - - go test -coverprofile=coverage.out -covermode=count -coverpkg=$(go list ./... | grep -v '/vendor/' | paste -sd, -) ./... + - sudo -E $(which go) test -v -coverprofile=coverage.out -covermode=count -coverpkg=$(go list ./... | grep -v '/vendor/' | paste -sd, -) ./... - make fmt vet build after_success: diff --git a/Makefile b/Makefile index 07aeee5..de02ab5 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ lint: fi get: - go get -v -d -u -t ./... + go get -v -d -t ./... test: go test ./... diff --git a/travis-setup.sh b/travis-setup.sh index d356b86..01c3979 100755 --- a/travis-setup.sh +++ b/travis-setup.sh @@ -25,8 +25,8 @@ sudo docker run -d -p 9000:9000 --name minio minio/minio server /data # Setup env variables from Docker containers sleep 30 -export AWS_ACCESS_KEY_ID=$(sudo docker exec -it minio cat /root/.minio/config.json | python -c "import sys, json; print(json.load(sys.stdin)['credential']['accessKey'])") -export AWS_SECRET_ACCESS_KEY=$(sudo docker exec -it minio cat /root/.minio/config.json | python -c "import sys, json; print(json.load(sys.stdin)['credential']['secretKey'])") +export AWS_ACCESS_KEY_ID=$(sudo docker exec -it minio cat /data/.minio.sys/config/config.json | python -c "import sys, json; print(json.load(sys.stdin)['credential']['accessKey'])") +export AWS_SECRET_ACCESS_KEY=$(sudo docker exec -it minio cat /data/.minio.sys/config/config.json | python -c "import sys, json; print(json.load(sys.stdin)['credential']['secretKey'])") # Scratch dir for tests mkdir ./scratch