Skip to content
Myr

leverage makefile to run build tasks (#976)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

remove circle ci

authored by Joshua Harshman · committed by GitHub · parent 3c26245 · Browse files · 5 files+73 added−66 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+73 added−66 removed

  • other:+73 added−66 removed

5 files+73 added−66 removed

deleted:.circleci/config.yml-53 removed
added:cobra/Makefile+23 added
1XC_OS="linux darwin"2XC_ARCH="amd64"3XC_PARALLEL="2"4BIN="../bin"5SRC=$(shell find . -name "*.go")67ifeq (, $(shell which gox))8$(warning "could not find gox in $(PATH), run: go get github.com/mitchellh/gox")9endif1011.PHONY: all build1213default: all1415all: build1617build:18 gox \19 -os=$(XC_OS) \20 -arch=$(XC_ARCH) \21 -parallel=$(XC_PARALLEL) \22 -output=$(BIN)/{{.Dir}}_{{.OS}}_{{.Arch}} \23 ;
modified:.gitignore+1 added-1 removed
30 unmodified lines
31# auto-generated tag files32tags3334*.exe35cobra35cobra.test36bin3738.idea/39*.iml
modified:.travis.yml+13 added-12 removed
added:Makefile+36 added
1BIN="./bin"2SRC=$(shell find . -name "*.go")34ifeq (, $(shell which richgo))5$(warning "could not find richgo in $(PATH), run: go get github.com/kyoh86/richgo")6endif78.PHONY: fmt vet test cobra_generator install_deps clean910default: all1112all: fmt vet test cobra_generator 1314fmt:15 $(info ******************** checking formatting ********************)16 @test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)1718test: install_deps vet19 $(info ******************** running tests ********************)20 richgo test -v ./...2122cobra_generator: install_deps23 $(info ******************** building generator ********************)24 mkdir -p $(BIN)25 make -C cobra all2627install_deps:28 $(info ******************** downloading dependencies ********************)29 go get -v ./...3031vet:32 $(info ******************** vetting ********************)33 go vet ./...3435clean:36 rm -rf $(BIN)