forked from go-swagger/go-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml.old
68 lines (62 loc) · 1.96 KB
/
circle.yml.old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
machine:
environment:
GOCOVMODE: "mode: atomic"
services:
- docker
general:
branches:
ignore:
- gh-pages
dependencies:
override:
- docker info
- docker pull casualjim/fpm
- docker pull casualjim/gox
- docker pull casualjim/github-release
- docker pull goswagger/go-swagger:ci
test:
post:
- bash <(curl -s https://codecov.io/bash)
override:
- mkdir -p $CIRCLE_TEST_REPORTS/go
- mkdir -p $CIRCLE_ARTIFACTS/dist
- ? >-
docker run
-v `pwd`:/go/src/github.com/go-swagger/go-swagger
-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
-e CIRCLE_PROJECT_USERNAME
-e CIRCLE_PROJECT_REPONAME
-w /go/src/github.com/go-swagger/go-swagger
goswagger/go-swagger:ci
./hack/build-docker.sh
:
timeout: 1800 # Fail if command has no output for 30 mins. Probably doesn't need that long.
deployment:
release:
tag: /[0-9]+(\.[0-9]+)*/
owner: go-swagger
commands:
- mkdir -p dist
- go get -u github.com/aktau/github-release
- ./hack/deploy.sh
dev_image:
branch: master
owner: go-swagger
commands:
- mkdir -p dist
- ? >-
docker run --rm -it
-v `pwd`:/go/src/github.com/go-swagger/go-swagger
-w /go/src/github.com/go-swagger/go-swagger
golang:1.8-alpine
go build -o ./dist/swagger-musl -a -tags netgo -installsuffix netgo ./cmd/swagger
:
timeout: 600 # Fail if command has no output for 10 mins. Probably doesn't need that long.
- docker login -u $API_USERNAME -p $QUAY_PASS -e $API_EMAIL https://quay.io
- mkdir -p dockerbuild
- cp ./dist/swagger-musl Dockerfile ./dockerbuild
- docker build --pull -t quay.io/goswagger/swagger:dev ./dockerbuild
- docker push quay.io/goswagger/swagger