github.com/bosssauce/ponzu@v0.11.1-0.20200102001432-9bc41b703131/.circleci/test-setup.sh (about)

     1  #!/bin/bash
     2  
     3  # Set up test environment
     4  
     5  set -ex 
     6  
     7  # Install Ponzu CMS
     8  go get -u github.com/ponzu-cms/ponzu/...
     9  
    10  # test install
    11  ponzu
    12  
    13  # create a project and generate code
    14  if [ $CIRCLE_BRANCH = "ponzu-dev" ]; then
    15          # ensure we have the latest from ponzu-dev branch
    16          cd /go/src/github.com/ponzu-cms/ponzu
    17          git checkout ponzu-dev
    18          git pull origin ponzu-dev
    19  
    20          # create new project using the ponzu-dev branch
    21          ponzu new --dev github.com/ponzu-cms/ci/test-project
    22  else 
    23          ponzu new github.com/ponzu-cms/ci/test-project
    24  fi
    25  
    26  cd /go/src/github.com/ponzu-cms/ci/test-project
    27  
    28  ponzu gen content person name:string hashed_secret:string
    29  ponzu gen content message from:@person,hashed_secret to:@person,hashed_secret
    30  
    31  # build and run dev http/2 server with TLS
    32  ponzu build
    33