.travis.yml 995 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. language: php
  2. php:
  3. - 5.3
  4. - 5.4
  5. env:
  6. - CAKE_VERSION=master
  7. - CAKE_VERSION=2.5
  8. before_script:
  9. - git clone --depth 1 --branch $CAKE_VERSION git://github.com/cakephp/cakephp ../cakephp && cd ../cakephp
  10. - rm -R app
  11. - git clone --depth 1 --branch master git://github.com/dereuromark/tools-app app
  12. - cp -R ../tools plugins/Tools
  13. - sh -c "mysql -e 'CREATE DATABASE cakephp_test;'"
  14. - mkdir ./app/tmp
  15. - mkdir ./app/tmp/logs
  16. - mkdir ./app/tmp/sessions
  17. - mkdir ./app/tmp/tests
  18. - mkdir ./app/tmp/cache
  19. - mkdir ./app/tmp/cache/persistent
  20. - mkdir ./app/tmp/cache/models
  21. - chmod -R 0777 ./app/tmp
  22. - echo "<?php
  23. class DATABASE_CONFIG {
  24. public \$test = array(
  25. 'datasource' => 'Database/Mysql',
  26. 'database' => 'cakephp_test',
  27. 'host' => '0.0.0.0',
  28. 'login' => 'travis',
  29. 'persistent' => false,
  30. );
  31. }" > app/Config/database.php
  32. - cd app
  33. script:
  34. - ../lib/Cake/Console/cake test Tools AllTools --stderr
  35. notifications:
  36. email: false