.travis.yml 1003 B

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