blob: 33139a4d6432024f45f7f9d8b2e7772fd88c913c (
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
27
28
29
30
31
32
33
|
#!/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
if [ $CIRCLE_BRANCH = "ponzu-dev" ]; then
# ensure we have the latest from ponzu-dev branch
cd /go/src/github.com/ponzu-cms/ponzu
git checkout ponzu-dev
git pull origin ponzu-dev
# create new project using the ponzu-dev branch
ponzu new --dev github.com/ponzu-cms/ci/test-project
else
ponzu new github.com/ponzu-cms/ci/test-project
fi
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
|