mirror of
https://github.com/prymitive/karma
synced 2026-05-09 03:36:44 +00:00
Merge pull request #328 from prymitive/cache-go-modules
chore(ci): cache Go modules dirs on Travis
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
defaults_go: &DEFAULTS_GO
|
||||
language: go
|
||||
go: "1.11.4"
|
||||
cache:
|
||||
directories:
|
||||
# https://restic.net/blog/2018-09-02/travis-build-cache
|
||||
- $HOME/.cache/go-build
|
||||
- $HOME/gopath/pkg/mod
|
||||
|
||||
defaults_js: &DEFAULTS_JS
|
||||
language: node_js
|
||||
|
||||
2
Makefile
2
Makefile
@@ -51,7 +51,7 @@ endif
|
||||
bindata_assetfs.go: .build/deps-build-go.ok .build/artifacts-bindata_assetfs.$(GO_BINDATA_MODE) .build/artifacts-ui.ok
|
||||
go-bindata-assetfs -o bindata_assetfs.go -nometadata ui/build/... ui/src/...
|
||||
|
||||
$(NAME): .build/deps-build-go.ok bindata_assetfs.go $(SOURCES)
|
||||
$(NAME): .build/deps-build-go.ok go.mod bindata_assetfs.go $(SOURCES)
|
||||
GO111MODULE=on go build -ldflags "-X main.version=$(VERSION)"
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
Reference in New Issue
Block a user