Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...) http://blog.slucas.fr/en/oss/calibre-opds-php-server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
983B

  1. #!/usr/bin/env bash
  2. PHP_VERSION=`php -v|grep --only-matching --perl-regexp "PHP 5\.\\d+"`
  3. echo $PHP_VERSION
  4. if [[ $PHP_VERSION != "PHP 5.6" ]]
  5. then
  6. echo "Bad PHP version"
  7. exit
  8. fi
  9. echo "Good PHP version"
  10. # Handle scrutinizer
  11. wget https://scrutinizer-ci.com/ocular.phar
  12. php ocular.phar code-coverage:upload --format=php-clover clover.xml
  13. if [[ -z $SAUCE_ACCESS_KEY ]]
  14. then
  15. echo "No Sauce Api Key (Pull request)"
  16. exit
  17. fi
  18. # Install dependencies
  19. wget http://getcomposer.org/composer.phar
  20. php composer.phar install
  21. echo 'opcache.enable=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  22. echo 'opcache.enable_cli=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  23. # Handle Sauce
  24. # curl https://gist.githubusercontent.com/seblucas/7692094/raw/e2a090e6ea639a0d700e6d02cee048fa2f6c8617/sauce_connect_setup.sh | bash
  25. cp -v test/config_local.php.sauce config_local.php
  26. php -S 127.0.0.1:8888 &
  27. vendor/bin/phpunit --no-configuration test/Sauce.php