Show travis test of server
This commit is contained in:
parent
fc7c9adec6
commit
338bf9b05c
14
.travis.yml
14
.travis.yml
@ -3,7 +3,7 @@
|
|||||||
# For syntax, see http://about.travis-ci.org/docs/user/languages/php/
|
# For syntax, see http://about.travis-ci.org/docs/user/languages/php/
|
||||||
|
|
||||||
# We use dist: precise to have php 5.3 available
|
# We use dist: precise to have php 5.3 available
|
||||||
#dist: precise
|
dist: precise
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
language: php
|
language: php
|
||||||
@ -264,14 +264,14 @@ before_script:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
echo "Checking webserver availability"
|
echo "Checking webserver availability by a wget -O - http://127.0.0.1"
|
||||||
# Ensure we catch errors
|
# Ensure we catch errors
|
||||||
set -e
|
set -e
|
||||||
wget http://127.0.0.1
|
wget -O - http://127.0.0.1 > test.html
|
||||||
cat index.html
|
head test.html
|
||||||
if [ "$DEBUG" = true ]; then
|
echo "Checking webserver availability by a wget -O - http://127.0.0.1/index.php"
|
||||||
cat index.html
|
wget -O - http://127.0.0.1/index.php > test.php
|
||||||
fi
|
head test.php
|
||||||
set +e
|
set +e
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user