Skip to content

Commit

Permalink
squash merge of branch config-single-template:
Browse files Browse the repository at this point in the history
add templating and variable expansion
  • Loading branch information
creativeprojects committed Nov 6, 2020
1 parent a55fe85 commit 836cbae
Show file tree
Hide file tree
Showing 37 changed files with 1,317 additions and 224 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ install:

script:
- go build -v .
- go test -v -short ./...
- go test -v -race -short -coverprofile=coverage.txt ./...

after_success:
- if [ -f coverage.txt ]; then bash <(curl -s https://codecov.io/bash); fi
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
GOCMD=go
GOBUILD=$(GOCMD) build
GOINSTALL=$(GOCMD) install
GORUN=$(GOCMD) run
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
Expand Down Expand Up @@ -37,13 +38,16 @@ ifeq ($(UNAME),Darwin)
TMP_MOUNT=${TMP_MOUNT_DARWIN}
endif

.PHONY: all test test-ci build build-mac build-linux build-windows build-all coverage clean test-docker build-docker ramdisk passphrase rest-server nightly toc release-snapshot
.PHONY: all test test-ci build install build-mac build-linux build-windows build-all coverage clean test-docker build-docker ramdisk passphrase rest-server nightly toc staticcheck release-snapshot generate-install

all: test build

build:
$(GOBUILD) -o $(BINARY) -v -ldflags "-X 'main.commit=${BUILD_COMMIT}' -X 'main.date=${BUILD_DATE}' -X 'main.builtBy=make'"

install:
$(GOINSTALL) -v -ldflags "-X 'main.commit=${BUILD_COMMIT}' -X 'main.date=${BUILD_DATE}' -X 'main.builtBy=make'"

build-mac:
GOOS="darwin" GOARCH="amd64" $(GOBUILD) -o $(BINARY_DARWIN) -v -ldflags "-X 'main.commit=${BUILD_COMMIT}' -X 'main.date=${BUILD_DATE}' -X 'main.builtBy=make'"

Expand Down Expand Up @@ -121,3 +125,11 @@ toc:
go install github.com/ekalinin/github-markdown-toc.go
go mod tidy
cat README.md | github-markdown-toc.go --hide-footer

staticcheck:
go get -u honnef.co/go/tools/cmd/staticcheck
go mod tidy
go run honnef.co/go/tools/cmd/staticcheck ./...

generate-install:
godownloader .goreleaser.yml -r creativeprojects/resticprofile -o install.sh

0 comments on commit 836cbae

Please sign in to comment.