-
Notifications
You must be signed in to change notification settings - Fork 14
/
alfred.yml
64 lines (55 loc) · 1.28 KB
/
alfred.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
setup:
summary: Setup alfred
command: |
go get
go build
alfred
build:
summary: Build alfred
commands: |
rm -rf /code/go/bin/alfred
go build -ldflags "-X main.Commit=`git rev-parse HEAD` -X main.Version=0.2.`git rev-list --count HEAD`" -o /code/go/bin/alfred
alfred --version
exit: 1
push:
summary: Push alfred
command: git status
tasks: verification commit build test dockerize docker.push
tdd:
summary: TDD alfred style!
watch: ".*?go$"
tasks: test
test:
summary: Testing ...
command: |
go install
go test -v
commit:
summary: Commit changes
commands: |
git status
git add .
git commit
git push origin master
exit: 42
verification:
alias: pause
summary: Ok with these changes? Hit [enter] if so.
command: read input
private: true
dockerize:
summary: Dockerize alfred
command: |
docker build -t kcmerrill/alfred .
docker.push:
summary: Push kcmerrill/alfred to dockerhub
usage: repo image
command: docker push kcmerrill/alfred
tdd.go:
summary: Watch .go files and run test.go
watch: ".*?(go|yml)$"
every: 1s
command: |
go install
go test alfred_test.go
include: ./