summaryrefslogtreecommitdiff
path: root/.circleci/test-setup.sh
blob: 76085e32ac08bf9fb71dbe539b5a6d389c345958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

# Set up test environment

set -ex 

# Install Ponzu CMS
go get -u github.com/ponzu-cms/ponzu/...


# test install
ponzu


# create a project and generate code
ponzu new github.com/ponzu-cms/ci/test-project

cd /go/src/github.com/ponzu-cms/ci/test-project

ponzu gen content person name:string hashed_secret:string
ponzu gen content message from:@person,hashed_secret to:@person,hashed_secret


# build and run dev http/2 server with TLS
ponzu build