wp-shortcake / shortcake-bakery

A fine selection of shortcodes for WordPress
42 stars 16 forks source link

Handle new Infogram domain #213

Closed montchr closed 6 years ago

montchr commented 6 years ago

212

Retains support for the legacy infogr.am domain.

montchr commented 6 years ago

The Travis job for single site PHP 5.3 failed, doesn't look connected to my changes…

https://travis-ci.org/wp-shortcake/shortcake-bakery/jobs/252928637

Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
PHP Fatal error:  Class 'WP_REST_Server' not found in /tmp/wordpress-tests-lib/includes/spy-rest-server.php on line 3
PHP Stack trace:
PHP   1. {main}() /home/travis/.phpenv/versions/5.3.29/bin/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /home/travis/.phpenv/versions/5.3.29/bin/phpunit:722
PHP   3. PHPUnit_TextUI_Command->run() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/TextUI/Command.php:104
PHP   4. PHPUnit_TextUI_Command->handleArguments() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/TextUI/Command.php:114
PHP   5. PHPUnit_TextUI_Command->handleBootstrap() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/TextUI/Command.php:622
PHP   6. PHPUnit_Util_Fileloader::checkAndLoad() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/TextUI/Command.php:792
PHP   7. PHPUnit_Util_Fileloader::load() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/Util/Fileloader.php:42
PHP   8. include_once() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/Util/Fileloader.php:58
PHP   9. require() /home/travis/build/wp-shortcake/shortcake-bakery/tests/bootstrap.php:19
PHP  10. require() /tmp/wordpress-tests-lib/includes/bootstrap.php:112

Fatal error: Class 'WP_REST_Server' not found in /tmp/wordpress-tests-lib/includes/spy-rest-server.php on line 3

Call Stack:
    0.0017     814424   1. {main}() /home/travis/.phpenv/versions/5.3.29/bin/phpunit:0
    0.0183    1539320   2. PHPUnit_TextUI_Command::main() /home/travis/.phpenv/versions/5.3.29/bin/phpunit:722
    0.0183    1540072   3. PHPUnit_TextUI_Command->run() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/TextUI/Command.php:104
    0.0183    1540072   4. PHPUnit_TextUI_Command->handleArguments() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/TextUI/Command.php:114
    0.0222    2268272   5. PHPUnit_TextUI_Command->handleBootstrap() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/TextUI/Command.php:622
    0.0224    2284768   6. PHPUnit_Util_Fileloader::checkAndLoad() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/TextUI/Command.php:792
    0.0224    2284904   7. PHPUnit_Util_Fileloader::load() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/Util/Fileloader.php:42
    0.0225    2296184   8. include_once('/home/travis/build/wp-shortcake/shortcake-bakery/tests/bootstrap.php') phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/Util/Fileloader.php:58
    0.0233    2474800   9. require('/tmp/wordpress-tests-lib/includes/bootstrap.php') /home/travis/build/wp-shortcake/shortcake-bakery/tests/bootstrap.php:19
    1.0988   46542536  10. require('/tmp/wordpress-tests-lib/includes/spy-rest-server.php') /tmp/wordpress-tests-lib/includes/bootstrap.php:112
goldenapples commented 6 years ago

Looks like whatever the issue was has cleared up, probably just a Travis glitch in installing packages for the test environment. I cleared the Travis cache and restarted the build, and it all passed without issue.

goldenapples commented 6 years ago

Continuing in #217.