forked from asteris-llc/converge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
80 lines (69 loc) · 1.97 KB
/
wercker.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
build:
box: asteris/converge-ci
steps:
# Sets the go workspace and places your package
# at the right place in the workspace tree
- setup-go-workspace
# Test the project
- script:
name: go test
code: make test
bench:
box: asteris/converge-ci
steps:
- setup-go-workspace
- script:
name: benchmark
code: make bench
fuzz:
box: asteris/converge-ci
steps:
- setup-go-workspace
- script:
name: fuzz
code: make fuzzing/*
publish:
box: asteris/converge-ci
steps:
- setup-go-workspace
- script:
name: make packages
code: |
make package
- script:
name: prepare for sync
code: |
DEST="$(git describe)"
mv build build.tmp
mkdir -p "build/$DEST"
mv build.tmp/* "build/$DEST"
- script:
name: upload builds to S3
code: |
s3cmd put \
--access_key=$AWS_ACCESS_KEY_ID \
--secret_key=$AWS_SECRET_ACCESS_KEY \
--recursive \
build/* \
$AWS_BUCKET_URL
- script:
name: upload new manifest
code: |
s3cmd ls --recursive $AWS_BUCKET_URL | grep -v index.html | grep -v manifest.txt > manifest.txt
s3cmd put \
--access_key=$AWS_ACCESS_KEY_ID \
--secret_key=$AWS_SECRET_ACCESS_KEY \
manifest.txt \
$AWS_BUCKET_URL/manifest.txt
- script:
name: upload installer to get.converge.sh
code: |
s3cmd put \
--access_key=$AWS_ACCESS_KEY_ID \
--secret_key=$AWS_SECRET_ACCESS_KEY \
install-converge.sh \
$GET_CONVERGE_BUCKET/install-converge.sh
s3cmd setacl \
--access_key=$AWS_ACCESS_KEY_ID \
--secret_key=$AWS_SECRET_ACCESS_KEY \
$GET_CONVERGE_BUCKET/install-converge.sh --acl-public