github.com/bosssauce/ponzu@v0.11.1-0.20200102001432-9bc41b703131/.circleci/test-run.sh (about) 1 #!/bin/bash 2 3 # Test that the configuration runs. 4 5 set -ex 6 7 cd /go/src/github.com/ponzu-cms/ci/test-project 8 9 ponzu run --dev-https & 10 11 # Smoke test 12 sleep 2 13 curl -Lk https://localhost:10443/admin | grep https://www.bosssauce.it 14 15 # Run unit tests 16 touch cookies 17 18 # Create initial admin user 19 curl -v --cookie-jar cookies \ 20 -d "name=Test&domain=localhost&email=test@ponzu-cms.org&password=ponzu" \ 21 -X POST localhost:8080/admin/init 22 23 #Test that content types were generated 24 curl -b cookies -c cookies http://localhost:8080/admin/contents?type=Person \ 25 | grep Person 26 27 curl -b cookies -c cookies http://localhost:8080/admin/contents?type=Message \ 28 | grep Message 29