github.com/kcmerrill/alfred@v0.0.0-20180727171036-06445dcb5e3d/alfred.yml (about) 1 setup: 2 summary: Setup alfred 3 command: | 4 go get 5 go build 6 alfred 7 8 build: 9 summary: Build alfred 10 commands: | 11 rm -rf /code/go/bin/alfred 12 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 13 alfred --version 14 exit: 1 15 16 push: 17 summary: Push alfred 18 command: git status 19 tasks: verification commit build test dockerize docker.push 20 21 tdd: 22 summary: TDD alfred style! 23 watch: ".*?go$" 24 tasks: test 25 26 test: 27 summary: Testing ... 28 command: | 29 go install 30 go test -v 31 32 commit: 33 summary: Commit changes 34 commands: | 35 git status 36 git add . 37 git commit 38 git push origin master 39 exit: 42 40 41 verification: 42 alias: pause 43 summary: Ok with these changes? Hit [enter] if so. 44 command: read input 45 private: true 46 47 dockerize: 48 summary: Dockerize alfred 49 command: | 50 docker build -t kcmerrill/alfred . 51 52 docker.push: 53 summary: Push kcmerrill/alfred to dockerhub 54 usage: repo image 55 command: docker push kcmerrill/alfred 56 57 tdd.go: 58 summary: Watch .go files and run test.go 59 watch: ".*?(go|yml)$" 60 every: 1s 61 command: | 62 go install 63 go test alfred_test.go 64 include: ./