forked from go-swagger/go-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
24 lines (21 loc) · 1.22 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
machine:
environment:
GOCOVMODE: "mode: count"
GO15VENDOREXPERIMENT: 1
services:
- docker
general:
branches:
ignore:
- gh-pages
dependencies:
override:
- docker info
- docker build -t go-swagger/go-swagger:ci-go15-$CIRCLE_BUILD_NUM-$CIRCLE_SHA1 -f Dockerfile.go15.ci .
- docker build -t go-swagger/go-swagger:ci-$CIRCLE_BUILD_NUM-$CIRCLE_SHA1 -f Dockerfile.ci .
test:
override:
- mkdir -p $CIRCLE_TEST_REPORTS/go
- mkdir -p $CIRCLE_ARTIFACTS/dist
- docker run -v $CIRCLE_ARTIFACTS/dist:/usr/share/dist -v $CIRCLE_TEST_REPORTS/go:/usr/share/testresults -v $CIRCLE_ARTIFACTS:/usr/share/coverage -e CIRCLE_BUILD_NUM=$CIRCLE_BUILD_NUM -e CIRCLE_PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME -e CIRCLE_PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME go-swagger/go-swagger:ci-go15-$CIRCLE_BUILD_NUM-$CIRCLE_SHA1 ./hack/build-docker.sh
- docker run -v $CIRCLE_ARTIFACTS/dist:/usr/share/dist -v $CIRCLE_TEST_REPORTS/go:/usr/share/testresults -v $CIRCLE_ARTIFACTS:/usr/share/coverage -e CIRCLE_BUILD_NUM=$CIRCLE_BUILD_NUM -e CIRCLE_PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME -e CIRCLE_PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME go-swagger/go-swagger:ci-$CIRCLE_BUILD_NUM-$CIRCLE_SHA1 ./hack/build-docker.sh