summaryrefslogtreecommitdiff
path: root/.circleci/test-setup.sh
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-12-20 01:03:03 -0700
committerGitHub <noreply@github.com>2017-12-20 01:03:03 -0700
commit4813ff8e0a25cb8ebc30c9cf5c6393e2726dbcd4 (patch)
tree3b06ef2d78fc16306e10bed24904a09d8d736787 /.circleci/test-setup.sh
parent1124d6ae8bc11367a1b483f0dc64a0d2b8e11847 (diff)
[testing] setting up CI (#210)
* add circle.yml * docker: update go version to 1.9 * add comments and organize steps * temporarily remove go test step * add ponzu install step * add generate, build, run and test
Diffstat (limited to '.circleci/test-setup.sh')
-rwxr-xr-x.circleci/test-setup.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/.circleci/test-setup.sh b/.circleci/test-setup.sh
new file mode 100755
index 0000000..76085e3
--- /dev/null
+++ b/.circleci/test-setup.sh
@@ -0,0 +1,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
+