Skip to content

Commit

Permalink
fixes #56 in php55beta
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpatrick committed Jul 1, 2015
1 parent f7ab7c7 commit c630fcc
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions circle.yml
Expand Up @@ -11,8 +11,24 @@ dependencies:

test:
override:
- docker-compose -f docker-compose.yml run web /.composer/vendor/phpunit/phpunit/phpunit /var/www/html/
- rake spec
- docker-compose -f docker-compose.yml run web /.composer/vendor/phpunit/phpunit/phpunit /var/www/html/:
timeout: 780
- rake spec:
timeout: 780
# start apache in background
- docker-compose -f docker-compose.yml up -d
# ngrock /ghostinspector real request
- wget https://dl.ngrok.com/ngrok_2.0.17_linux_amd64.zip
- unzip ngrok_2.0.17_linux_amd64.zip
- ./ngrok authtoken $NGROK_TOKEN
- ./ngrok http -subdomain=$CIRCLE_SHA1 8888:
background: true
# Wait for application and ngrok to be ready
- curl --retry 10 --retry-delay 10 -v https://$CIRCLE_SHA1.ngrok.io
# Execute Ghost Inspector tests using the ngrok tunnel
- curl "https://api.ghostinspector.com/v1/suites/$GHOST_SUITE_ID/execute/?apiKey=$GHOST_API_KEY&startUrl=https://$CIRCLE_SHA1.ngrok.io" > $CIRCLE_ARTIFACTS/ghostinspector.json
- if [ $(grep -c '"passing":false' $CIRCLE_ARTIFACTS/ghostinspector.json) -ne 0 ]; then exit 1; fi

post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -name "results.xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
Expand Down

0 comments on commit c630fcc

Please sign in to comment.