forked from influxdata/kapacitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
32 lines (27 loc) · 957 Bytes
/
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
# The forces Circle CI to get a fresh clone of the repo.
#checkout:
# post:
# - rm -rf ~/kapacitor
# - git clone [email protected]:influxdata/kapacitor.git ~/kapacitor
machine:
services:
- docker
dependencies:
pre:
# setup ipv6
- sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 net.ipv6.conf.default.disable_ipv6=0 net.ipv6.conf.all.disable_ipv6=0
cache_directories:
- "~/docker"
override:
- if [[ -e ~/docker/kapacitor-builder.tar ]]; then docker load -i ~/docker/kapacitor-builder.tar; fi
- docker build -t influxdata/kapacitor-builder .
- mkdir -p ~/docker; docker save influxdata/kapacitor-builder > ~/docker/kapacitor-builder.tar
test:
override:
- ./build.sh --test --generate --no-vet
- ./build.sh --test --generate --race --no-vet
deployment:
release:
tag: /v[0-9]+(\.[0-9]+){2}(-rc[0-9]+)?/
commands:
- ./build.sh --clean --generate --packages --upload --platform=all --arch=all