-
Notifications
You must be signed in to change notification settings - Fork 2
/
wercker.yml
76 lines (70 loc) · 1.77 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
# build and test go
ci:
box: golang
steps:
- setup-go-workspace
- golint:
exclude: vendor/**/*
- script:
name: go test
code: |
set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor | grep -v config | grep -v dev | grep -v ui); do
go test -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done
cat coverage.txt
- script:
name: upload coverage
code: |
bash <(curl -s https://codecov.io/bash)
ci-ui:
box: node:6.9
steps:
- npm-install:
cwd: ui
- npm-test:
cwd: ui
build-ui:
box: node:6.9
steps:
- mitelone/webpack:
cwd: ui
config-file: ./config/webpack.prod.js
- script:
name: view assets
cwd: ui
code: |
ls -la ./dist
build-release:
box: golang
steps:
- script:
name: go build
code: |
mkdir -p /go/src/github.com/generationtux
ln -s $WERCKER_ROOT /go/src/github.com/generationtux/brizo
cd /go/src/github.com/generationtux/brizo
ls -la ui/dist
go build
rm -rf vendor
rm -rf ui/node_modules
- internal/docker-push:
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
cmd: /go/src/github.com/generationtux/brizo/brizo
repository: gentux/brizo
disable-sync: true
tag: latest
working-dir: /go/src/github.com/generationtux/brizo
github-release:
box: golang
steps:
- script:
name: create release
code: |
./release.sh generationtux brizo $GITHUB_RELEASE