From 1f5886df5ea3d7e14d6a015bf689af04993f5a0d Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Tue, 26 Nov 2019 15:08:09 -0500 Subject: 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. --- .drone.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3