Skip to content

Commit

Permalink
Add Cirrus CI integration (pt2) (#39)
Browse files Browse the repository at this point in the history
Adds CI files and fixes broken test (that we didn't notice before).
  • Loading branch information
josephlr authored Sep 5, 2019
1 parent 7f40da3 commit 3a8c4fa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
container:
dockerfile: Dockerfile

env:
GOPROXY: https://proxy.golang.org
GO111MODULE: on

test_task:
modules_cache:
fingerprint_script: cat go.sum
folder: $GOPATH/pkg/mod
submodule_script: git submodule update --init --depth=1
build_script: go build -v ./...
test_script: go test -v ./...
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM golang:latest
# We need OpenSSL headers to build the simulator
RUN apt-get update && apt-get install -y libssl-dev
2 changes: 1 addition & 1 deletion simulator/simulator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestGetRandom(t *testing.T) {
// The default EK modulus returned by the simulator when using a seed of 0.
func zeroSeedModulus() *big.Int {
mod := new(big.Int)
mod.SetString("26477589937104991909107546555596844814208501488398993637176547657040026510855262969599454342201099113570046958586074392392826189046589605606588308257325163261342553439301667460931252566414147127913702995490057967486186645056306958312086007589909165009386429083077296377200887146918939772513316195006666792119837801758230035524859461860350033253189094242924143497565958844676091714149214599630067691603355200610080948040721792826555203794339873010858621008154912642347482410965625629019620301070822787536053368781567603344040355963007625122652644931867174203344607909482751447522901014476802272093691307744409028025073", 10)
mod.SetString("16916951631746795233120676661491589156159944041454533323301360736206690950055927665898258850365255777475324525235640153431219834851979041935421083247812345676551677241639541392158486693550125570954276972465867114995062336740464652481116557477039581976647612151813804384773839359390083864432536639577227083497558006614244043011423717921293964465162166865351126036685960128739613171620392174911624095420039156957292384191548425395162459332733115699189854006301807847331248289929021522087915411000598437989788501679617747304391662751900488011803826205901900186771991702576478232121332699862815915856148442279432061762451", 10)
return mod
}

Expand Down

0 comments on commit 3a8c4fa

Please sign in to comment.