added travis.yml
This commit is contained in:
parent
413638137b
commit
4ba6fe13b3
47
.travis.yml
Normal file
47
.travis.yml
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
language: php
|
||||||
|
|
||||||
|
php:
|
||||||
|
- 5.4
|
||||||
|
- 5.5
|
||||||
|
- 5.6
|
||||||
|
- 7.0
|
||||||
|
# - hhvm
|
||||||
|
# - hhvm-nightly
|
||||||
|
|
||||||
|
# run build against hhvm but allow them to fail
|
||||||
|
# http://docs.travis-ci.com/user/build-configuration/#Rows-That-are-Allowed-To-Fail
|
||||||
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
allow_failures:
|
||||||
|
# - php: hhvm-nightly
|
||||||
|
- php: 7.0
|
||||||
|
|
||||||
|
# faster builds on new travis setup not using sudo
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
# cache vendor dirs
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- vendor
|
||||||
|
- $HOME/.composer/cache
|
||||||
|
|
||||||
|
install:
|
||||||
|
- travis_retry composer self-update && composer --version
|
||||||
|
- travis_retry composer global require "fxp/composer-asset-plugin:1.0.0"
|
||||||
|
- 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
|
Loading…
Reference in New Issue
Block a user