.travis.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. language: php
  2. php:
  3. - 5.3
  4. - 5.4
  5. env:
  6. - CAKE_VERSION=master
  7. - CAKE_VERSION=2.4
  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 git://github.com/dereuromark/tools-app app && cd app && git checkout master
  12. - cd ..
  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. 'host' => '',
  31. 'persistent' => false,
  32. );
  33. }" > app/Config/database.php
  34. - cd app
  35. script:
  36. - ../lib/Cake/Console/cake test Tools AllTools
  37. notifications:
  38. email: false