summaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
Diffstat (limited to '.circleci')
-rwxr-xr-x.circleci/test-setup.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/.circleci/test-setup.sh b/.circleci/test-setup.sh
index 76085e3..33139a4 100755
--- a/.circleci/test-setup.sh
+++ b/.circleci/test-setup.sh
@@ -7,20 +7,27 @@ 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
+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