Working on TravisCI

This commit is contained in:
Hillel Coren 2016-02-18 13:36:47 +02:00
parent 983c430524
commit f8066492e6
2 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,6 @@
language: php language: php
sudo: true sudo: false
php: php:
- 5.5 - 5.5
@ -27,7 +27,6 @@ before_install:
# set GitHub token and update composer # set GitHub token and update composer
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi; - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
- composer self-update && composer -V - composer self-update && composer -V
- sudo apt-get -y install phantomjs screen
install: install:
# install Composer dependencies # install Composer dependencies
@ -54,8 +53,7 @@ before_script:
# Start webserver on ninja.dev:8000 # Start webserver on ninja.dev:8000
- php artisan serve --host=ninja.dev --port=8000 & # '&' allows to run in background - php artisan serve --host=ninja.dev --port=8000 & # '&' allows to run in background
# Start PhantomJS # Start PhantomJS
#- phantomjs --webdriver=4444 & # '&' allows to run in background - phantomjs --webdriver=4444 & # '&' allows to run in background
- screen -S server -d m phantomjs --webdriver=4444 &
# Give it some time to start # Give it some time to start
- sleep 5 - sleep 5
# Make sure the app is up-to-date # Make sure the app is up-to-date
@ -65,9 +63,9 @@ script:
- php ./vendor/codeception/codeception/codecept run --html --debug - php ./vendor/codeception/codeception/codecept run --html --debug
after_script: after_script:
- cat tests/_output/* #- cat tests/_output/*
- cat /var/log/apache2/access.log #- cat /var/log/apache2/access.log
- cat /var/log/apache2/error.log #- cat /var/log/apache2/error.log
- cat storage/logs/laravel.log - cat storage/logs/laravel.log

View File

@ -8,10 +8,10 @@ class_name: AcceptanceTester
modules: modules:
enabled: enabled:
- WebDriver: - WebDriver:
url: 'http://ninja.dev:8000' url: 'http://ninja.dev:8000/'
window_size: 1024x768 window_size: 1024x768
wait: 5 wait: 5
browser: phantomjs browser: firefox
capabilities: capabilities:
unexpectedAlertBehaviour: 'accept' unexpectedAlertBehaviour: 'accept'
webStorageEnabled: true webStorageEnabled: true