From ba3f00989c310962648db120e8246dbee96a0bf2 Mon Sep 17 00:00:00 2001 From: Joseph Richey Date: Mon, 9 Sep 2019 14:31:21 -0700 Subject: [PATCH] Cirrus (#126) * Add Cirrus CI presubmits Configuration is much easier, and we avoid needing internal CI configuration. Files based on those in go-tpm-tools. * Delete apt-cache in Docker image --- .cirrus.yml | 13 +++++++++++++ Dockerfile | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 .cirrus.yml create mode 100644 Dockerfile diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 00000000..13d62a10 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,13 @@ +container: + dockerfile: Dockerfile + +env: + GOPROXY: https://proxy.golang.org + GO111MODULE: on + +test_task: + modules_cache: + fingerprint_script: cat go.sum + folder: $GOPATH/pkg/mod + build_script: go build -v ./... + test_script: go test -v ./... diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..1f5ba8d0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM golang:latest +# We need OpenSSL headers to build the simulator +RUN apt-get update && apt-get install -y \ + libssl-dev \ + && rm -rf /var/lib/apt/lists/*