Skip to content

Commit

Permalink
Added behat test settings for travis. Fixes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsvec committed Apr 2, 2014
1 parent 69d3789 commit 184373c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,26 @@ php:
- 5.5

before_script:
# install web server for behat tests
- sudo apt-get update > /dev/null
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-mysql php5-intl
# add virtual host
- sudo sed -i -e "s,/var/www,$(pwd)/www,g" /etc/apache2/sites-available/default
# add virtualhost chuck.l
- sudo sed -i -e "/DocumentRoot/i\ServerName chuck.l" /etc/apache2/sites-available/default
- echo "127.0.0.1 chuck.l" | sudo tee -a /etc/hosts
- sudo /etc/init.d/apache2 restart
# install all dependencies
- composer self-update
- composer install --no-interaction --dev --prefer-source
# install Nette directories
- mkdir log
- mkdir temp
- chmod -R 777 temp log

script: phpunit --coverage-clover=coverage.clover
script:
- phpunit --coverage-clover=coverage.clover
- vendor/bin/behat

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
Expand Down
2 changes: 1 addition & 1 deletion behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ default:
features: features
extensions:
Behat\MinkExtension\Extension:
base_url: http://localhost/norel-dev-tools/chuck/www/
base_url: http://chuck.l/
#base_url: http://172.20.1.19/chuck/
show_cmd: 'firefox.exe %s'
default_session: goutte
Expand Down

0 comments on commit 184373c

Please sign in to comment.