forked from hortonworks/cloudbreak-deployer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
47 lines (41 loc) · 915 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
machine:
services:
- docker
environment:
GODIST: "go1.8.3.linux-amd64.tar.gz"
post:
- mkdir -p download
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf download/$GODIST
dependencies:
pre:
- git fetch --tags
- make circleci
- make deps
- make echo_version
override:
- make build
post:
- make echo_version
- make upload-tagged
- tar -czvf $CIRCLE_ARTIFACTS/cbd-linux.tgz -C build/Linux cbd
- tar -czvf $CIRCLE_ARTIFACTS/cbd-darwin.tgz -C build/Darwin cbd
cache_directories:
- ~/download
test:
override:
- make tests
deployment:
master:
branch: master
commands:
- make upload-snapshot
release:
branch: release
commands:
- make release
general:
branches:
ignore:
- gh-pages