phantom tests
This commit is contained in:
parent
cadbeba2b5
commit
39d86d7bd7
@ -17,6 +17,7 @@ before_script:
|
|||||||
- sudo apt-get install apache2
|
- sudo apt-get install apache2
|
||||||
- sudo a2enmod actions
|
- sudo a2enmod actions
|
||||||
- sudo a2enmod rewrite
|
- sudo a2enmod rewrite
|
||||||
|
- chmod -R 0777 ./*
|
||||||
- echo "export PATH=/home/travis/.phpenv/bin:$PATH" | sudo tee -a /etc/apache2/envvars > /dev/null
|
- echo "export PATH=/home/travis/.phpenv/bin:$PATH" | sudo tee -a /etc/apache2/envvars > /dev/null
|
||||||
- cat travis/apache.conf | sudo tee /etc/apache2/conf.d/phpconfig > /dev/null
|
- cat travis/apache.conf | sudo tee /etc/apache2/conf.d/phpconfig > /dev/null
|
||||||
- cat travis/sites.conf | sed -e "s,PATH,`pwd`/www,g" | sudo tee /etc/apache2/sites-available/default > /dev/null
|
- cat travis/sites.conf | sed -e "s,PATH,`pwd`/www,g" | sudo tee /etc/apache2/sites-available/default > /dev/null
|
||||||
|
|||||||
@ -1,8 +1,12 @@
|
|||||||
var page = require('webpage').create();
|
var page = require('webpage').create();
|
||||||
page.open('http://localhost', function(status) {
|
page.open('http://localhost/robots.txt', function(status) {
|
||||||
|
/*
|
||||||
var title = page.evaluate(function() {
|
var title = page.evaluate(function() {
|
||||||
return document.body.innerText;
|
return document.body.innerText;
|
||||||
});
|
});
|
||||||
console.log('>> BODY ' + title);
|
console.log('>> BODY >> ' + title);
|
||||||
|
*/
|
||||||
|
|
||||||
|
console.log('>> CONTENT >> ' + page.content);
|
||||||
phantom.exit();
|
phantom.exit();
|
||||||
});
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user