A .build.yml => .build.yml +31 -0
@@ 0,0 1,31 @@
+image: alpine/edge
+packages:
+ - go
+sources:
+ - https://git.sr.ht/~gjabell/bmk
+tasks:
+ - setup: |
+ mkdir go
+ cd bmk
+ go get
+ go get -u golang.org/x/lint/golint
+ echo "export PATH=~/go/bin:$PATH" >> ~/.buildenv
+ - lint: |
+ cd bmk
+ make lint
+ - vet: |
+ cd bmk
+ make vet
+ - test: |
+ cd bmk
+ make test
+ - build: |
+ cd bmk
+ make
+ sudo make install
+ bmk add -t dev git.sr.ht "The hacker's forge"
+ bmk ls
+triggers:
+ - action: email
+ condition: failure
+ to: Galen Abell <galen@galenabell.com>
M Makefile => Makefile +9 -0
@@ 13,6 13,15 @@ bmk:
doc: bmk
./bmk doc -c config/config.toml
+lint:
+ golint ./...
+
+vet:
+ go vet ./...
+
+test:
+ go test ./...
+
all: bmk doc
clean: