diff options
| author | 2019-11-26 15:08:09 -0500 | |
|---|---|---|
| committer | 2019-11-26 15:08:09 -0500 | |
| commit | 1f5886df5ea3d7e14d6a015bf689af04993f5a0d (patch) | |
| tree | 93c74d98bec298395db03517190238ba0b13dcab | |
| parent | CI: 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.yml | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |
