~gjabell/bmk

edb4a06398b49fb3f3971678cb2449020eb7df6b — Galen Abell 5 years ago ca2de32
Add .build.yml and Makefile targets
2 files changed, 40 insertions(+), 0 deletions(-)

A .build.yml
M Makefile
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: