Skip to content

Commit

Permalink
fix subshell curl in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
sriv committed Aug 3, 2017
1 parent e6eae73 commit 533bb41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ script:
- RACK_ENV=production bundle exec rake war
- nohup java -jar activeadmin-demo.war >/dev/null 2>&1 &
- sleep 30
- [[ `curl -o /dev/null --silent --head --write-out '%{http_code}\n' http://localhost:8080` == 200 ]] && echo "HTTP OK" || echo "HTTP failed" && exit -1
- [[ "$(curl -o /dev/null --silent --head --write-out '%{http_code}\n' http://localhost:8080)" == "200" ]] && echo "HTTP OK" || echo "HTTP failed" && exit -1
before_deploy:
- export RELEASE_WAR_FILE=$(ls activeadmin-demo.war)
- echo "deploying $RELEASE_WAR_FILE to GitHub releases"
Expand Down

0 comments on commit 533bb41

Please sign in to comment.