2015-03-22 20:14:19 +01:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
|
|
|
- 5.4
|
|
|
|
- 5.5
|
|
|
|
- 5.6
|
|
|
|
- 7.0
|
2016-01-16 19:08:23 +02:00
|
|
|
# - hhvm
|
2015-03-22 20:14:19 +01:00
|
|
|
|
|
|
|
# faster builds on new travis setup not using sudo
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
# cache vendor dirs
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
|
|
|
install:
|
|
|
|
- travis_retry composer self-update && composer --version
|
2016-01-16 19:11:06 +02:00
|
|
|
- travis_retry composer global require "fxp/composer-asset-plugin:~1.1.1"
|
2015-03-22 20:14:19 +01:00
|
|
|
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
|
|
|
- travis_retry composer install --dev --prefer-dist --no-interaction
|
|
|
|
# codeception
|
|
|
|
- travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
|
|
|
|
# setup application:
|
|
|
|
- |
|
|
|
|
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
|
|
|
|
cd tests
|
|
|
|
codecept build
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
script:
|
|
|
|
- |
|
|
|
|
cd web
|
|
|
|
php -S localhost:8080 > /dev/null 2>&1 &
|
|
|
|
cd ../tests
|
|
|
|
codecept run
|