.travis.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. language: php
  2. php:
  3. - 5.4
  4. - 5.5
  5. - 5.6
  6. - 7.0
  7. # - hhvm
  8. # - hhvm-nightly
  9. # run build against hhvm but allow them to fail
  10. # http://docs.travis-ci.com/user/build-configuration/#Rows-That-are-Allowed-To-Fail
  11. matrix:
  12. fast_finish: true
  13. allow_failures:
  14. # - php: hhvm-nightly
  15. - php: 7.0
  16. # faster builds on new travis setup not using sudo
  17. sudo: false
  18. # cache vendor dirs
  19. cache:
  20. directories:
  21. - vendor
  22. - $HOME/.composer/cache
  23. install:
  24. - travis_retry composer self-update && composer --version
  25. - travis_retry composer global require "fxp/composer-asset-plugin:1.0.0"
  26. - export PATH="$HOME/.composer/vendor/bin:$PATH"
  27. - travis_retry composer install --dev --prefer-dist --no-interaction
  28. # codeception
  29. - travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
  30. # setup application:
  31. - |
  32. sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
  33. cd tests
  34. codecept build
  35. cd ..
  36. script:
  37. - |
  38. cd web
  39. php -S localhost:8080 > /dev/null 2>&1 &
  40. cd ../tests
  41. codecept run