Skip to content

Commit

Permalink
Cirrus (#126)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
josephlr authored Sep 9, 2019
1 parent b2c8857 commit ba3f009
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -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 ./...
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*

0 comments on commit ba3f009

Please sign in to comment.