forked from grafana/k6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
48 lines (42 loc) · 1.37 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
machine:
services:
- docker
checkout:
post:
- git submodule update --init
dependencies:
override:
- docker info
- docker build -t loadimpact/k6 .
- echo "{\"https://index.docker.io/v1/\":{\"auth\":\"$DOCKER_AUTH\",\"email\":\"$DOCKER_EMAIL\"}}" >~/.dockercfg
test:
override:
- docker run --entrypoint /bin/bash loadimpact/k6 -c 'cd $GOPATH/src/github.com/loadimpact/k6 && go get -t ./... && go get github.com/alecthomas/gometalinter && gometalinter --install && make check'
# Make sure we don't break the CLI again.
- docker run loadimpact/k6 --help
- docker run loadimpact/k6 help
- docker run loadimpact/k6 run --help
- docker run loadimpact/k6 inspect --help
- docker run loadimpact/k6 status --help
- docker run loadimpact/k6 stats --help
- docker run loadimpact/k6 scale --help
- docker run loadimpact/k6 pause --help
- docker run loadimpact/k6 resume --help
deployment:
latest:
branch: master
owner: loadimpact
commands:
- docker push loadimpact/k6
develop:
branch: develop
owner: loadimpact
commands:
- docker tag loadimpact/k6 loadimpact/k6:develop
- docker push loadimpact/k6:develop
tag:
tag: /v[0-9]+(\.[0-9]+)*/
owner: loadimpact
commands:
- docker tag loadimpact/k6 loadimpact/k6:${CIRCLE_TAG:1}
- docker push loadimpact/k6:${CIRCLE_TAG:1}