.travis.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. - $HOME/.composer/cache
  22. install:
  23. - travis_retry composer self-update && composer --version
  24. - travis_retry composer global require "fxp/composer-asset-plugin:~1.1.0"
  25. - export PATH="$HOME/.composer/vendor/bin:$PATH"
  26. - travis_retry composer install --dev --prefer-dist --no-interaction
  27. # codeception
  28. - travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
  29. # setup application:
  30. - |
  31. sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
  32. cd tests
  33. codecept build
  34. cd ..
  35. script:
  36. - |
  37. cd web
  38. php -S localhost:8080 > /dev/null 2>&1 &
  39. cd ../tests
  40. codecept run