summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2019-11-26 15:08:09 -0500
committerGitHub <noreply@github.com>2019-11-26 15:08:09 -0500
commit1f5886df5ea3d7e14d6a015bf689af04993f5a0d (patch)
tree93c74d98bec298395db03517190238ba0b13dcab
parentCI: ok fine you can have gcc for tests (diff)
CI: generate templates from master
Compiled templates are only committed for releases. CI should use whatever is latest. Also fix a missing --no-cache in tests.
-rw-r--r--.drone.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.drone.yml b/.drone.yml
index e58ab2f..5926842 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -7,6 +7,13 @@ common: &common
- go build -v -o "${DRONE_REPO_NAME}-$${GOOS}-$${GOARCH}" -ldflags "-s -w"
steps:
+- name: prepare-templates
+ image: golang:alpine
+ commands:
+ - apk add --no-cache git
+ - go get github.com/valyala/quicktemplate/qtc
+ - "${{GOPATH}}/bin/qtc"
+
- name: build-linux-amd64
<<: *common
environment:
@@ -58,7 +65,7 @@ steps:
- name: test
image: golang:alpine
commands:
- - apk add gcc musl-dev # apparently still needed
+ - apk add --no-cache gcc musl-dev # apparently still needed
- go test -v ./...
- name: deploy