travis_build.sh 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env bash
  2. root=$PWD
  3. mkdir app
  4. echo "<?php
  5. require_once 'Zend/Exception.php';
  6. require_once 'Zend/Cache.php';
  7. require_once 'Zend/Cache/Backend/File.php';
  8. require_once 'File.php';
  9. " > app/Mage.php
  10. mkdir -p Zend/Cache/Backend
  11. mkdir -p Zend/Log/{Filter,Formatter,Writer}
  12. cd $root/Zend
  13. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Exception.php
  14. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Cache.php
  15. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Log.php
  16. cd $root/Zend/Cache
  17. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Cache/Exception.php
  18. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Cache/Backend.php
  19. cd $root/Zend/Cache/Backend
  20. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Cache/Backend/Interface.php
  21. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Cache/Backend/ExtendedInterface.php
  22. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Cache/Backend/File.php
  23. cd $root/Zend/Log
  24. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Log/FactoryInterface.php
  25. cd $root/Zend/Log/Filter
  26. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Log/Filter/Priority.php
  27. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Log/Filter/Abstract.php
  28. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Log/Filter/Interface.php
  29. cd $root/Zend/Log/Formatter
  30. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Log/Formatter/Simple.php
  31. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Log/Formatter/Abstract.php
  32. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Log/Formatter/Interface.php
  33. cd $root/Zend/Log/Writer
  34. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Log/Writer/Stream.php
  35. wget -q https://github.com/zendframework/zf1/raw/master/library/Zend/Log/Writer/Abstract.php