copy .git folder explicity

This commit is contained in:
Dominic Breuker committed 2018-03-12 08:58:01 +01:00
1 parent 246e4f6b2d
commit a5bf551d96
5 files changed
+5 -7

No files matched your search

+3 -3
View File
@@ -1,10 +1,10 @@
version: 2 version: 2
jobs: jobs:
build: build:
machine: true docker:
image: docker:17.05.0-ce-git - image: docker:17.05.0-ce-git
steps: steps:
- checkout - checkout
- setup_remote_docker - setup_remote_docker
- run: docker build -f ./docker/Dockerfile.testing -t local/pspy-testing:latest . - run: docker build -f ./docker/Dockerfile.testing -t local/pspy-testing:latest .
- run: docker run -it -v `pwd`/.git:/go/src/github.com/dominicbreuker/pspy/.git -e CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID local/pspy-testing:latest - run: docker run -it -e CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID local/pspy-testing:latest
-1
View File
@@ -1,3 +1,2 @@
.git
.gitignore .gitignore
images/ images/
+1 -1
View File
@@ -8,7 +8,7 @@ TEST_DOCKERFILE = $(PROJECT_DIR)/docker/Dockerfile.testing
test: test:
docker build -f $(TEST_DOCKERFILE) -t $(TEST_IMAGE) . docker build -f $(TEST_DOCKERFILE) -t $(TEST_IMAGE) .
docker run -it --rm -v $(PROJECT_DIR)/.git:/go/src/github.com/dominicbreuker/pspy/.git $(TEST_IMAGE) docker run -it --rm $(TEST_IMAGE)
dev-build: dev-build:
docker build -f $(DEV_DOCKERFILE) -t $(DEV_IMAGE) . docker build -f $(DEV_DOCKERFILE) -t $(DEV_IMAGE) .
+1
View File
@@ -9,6 +9,7 @@ COPY main.go /go/src/github.com/dominicbreuker/pspy/main.go
COPY cmd /go/src/github.com/dominicbreuker/pspy/cmd COPY cmd /go/src/github.com/dominicbreuker/pspy/cmd
COPY internal /go/src/github.com/dominicbreuker/pspy/internal COPY internal /go/src/github.com/dominicbreuker/pspy/internal
COPY vendor /go/src/github.com/dominicbreuker/pspy/vendor COPY vendor /go/src/github.com/dominicbreuker/pspy/vendor
COPY .git /go/src/github.com/dominicbreuker/pspy/.git
# run tests # run tests
WORKDIR /go/src/github.com/dominicbreuker/pspy WORKDIR /go/src/github.com/dominicbreuker/pspy
-2
View File
@@ -18,14 +18,12 @@ else
./cc-test-reporter before-build ./cc-test-reporter before-build
for pkg in $(go list ./... | grep -v main); do for pkg in $(go list ./... | grep -v main); do
echo "doing $pkg"
go test -coverprofile=$(echo $pkg | tr / -).cover $pkg go test -coverprofile=$(echo $pkg | tr / -).cover $pkg
done done
echo "mode: set" > c.out echo "mode: set" > c.out
grep -h -v "^mode:" ./*.cover >> c.out grep -h -v "^mode:" ./*.cover >> c.out
rm -f *.cover rm -f *.cover
echo "reporting now"
./cc-test-reporter after-build ./cc-test-reporter after-build
rm c.out rm c.out