.travis.yml 674 B

12345678910111213141516171819202122232425262728293031
  1. language: php
  2. php:
  3. - 5.4
  4. - 5.5
  5. - 5.6
  6. - 7.0
  7. # - hhvm
  8. # faster builds on new travis setup not using sudo
  9. sudo: false
  10. # cache vendor dirs
  11. cache:
  12. directories:
  13. - $HOME/.composer/cache
  14. install:
  15. - travis_retry composer self-update && composer --version
  16. - travis_retry composer global require "fxp/composer-asset-plugin:~1.1.1"
  17. - export PATH="$HOME/.composer/vendor/bin:$PATH"
  18. - travis_retry composer install --dev --prefer-dist --no-interaction
  19. # setup application:
  20. - |
  21. sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
  22. script:
  23. - |
  24. cd web
  25. php -S localhost:8080 > /dev/null 2>&1 &
  26. codecept run