Skip to content

Commit

Permalink
ci: try install of ponzu branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslice committed Nov 27, 2019
1 parent ef9d7c4 commit 8db1e91
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
- checkout

# generate and build project to test
- run: curl https://raw.githubusercontent.com/ponzu-cms/ponzu/ponzu-dev/.circleci/test-setup.sh | sh
- run: .circleci/test-setup.sh

# run tests
- run: curl https://raw.githubusercontent.com/ponzu-cms/ponzu/ponzu-dev/.circleci/test-run.sh | sh
- run: .circleci/test-run.sh | sh

12 changes: 8 additions & 4 deletions .circleci/test-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,29 @@
set -ex

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

# test install
ponzu

PROJ_PATH=github.com/ponzu-cms/ci/test-project
# 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

# install ponzu-dev branch of CLI
go install ./...

# create new project using the ponzu-dev branch
ponzu new --dev github.com/ponzu-cms/ci/test-project
ponzu new --dev ${PROJ_PATH}
else
ponzu new github.com/ponzu-cms/ci/test-project
ponzu new ${PROJ_PATH}
fi

cd /go/src/github.com/ponzu-cms/ci/test-project
cd /go/src/${PROJ_PATH}

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

0 comments on commit 8db1e91

Please sign in to comment.