@@ -403,17 +403,6 @@ public function underscores( $args, $assoc_args ) {
403403
404404 $ response = wp_remote_post ( $ url , $ post_args );
405405
406- // Workaround to get scaffolding to work within Travis CI.
407- // See https://github.com/wp-cli/scaffold-command/issues/181
408- if ( is_wp_error ( $ response )
409- && false !== strpos ( $ response ->get_error_message (), 'gnutls_handshake() failed ' )
410- ) {
411- // Certificate problem, falling back to unsecured request instead.
412- $ alt_url = str_replace ( 'https:// ' , 'http:// ' , $ url );
413- WP_CLI ::warning ( "Secured request to {$ url } failed, using {$ alt_url } as a fallback. " );
414- $ response = wp_remote_post ( $ alt_url , $ post_args );
415- }
416-
417406 if ( is_wp_error ( $ response ) ) {
418407 WP_CLI ::error ( $ response );
419408 }
@@ -580,7 +569,7 @@ private function get_output_path( $assoc_args, $subdir ) {
580569 * The following files are also included unless the `--skip-tests` is used:
581570 *
582571 * * `phpunit.xml.dist` is the configuration file for PHPUnit.
583- * * `.travis .yml` is the configuration file for Travis CI . Use `--ci=<provider>` to select a different service.
572+ * * `.circleci/config .yml` is the configuration file for CircleCI . Use `--ci=<provider>` to select a different service.
584573 * * `bin/install-wp-tests.sh` configures the WordPress test suite and a test database.
585574 * * `tests/bootstrap.php` is the file that makes the current plugin active when running the test suite.
586575 * * `tests/test-sample.php` is a sample file containing test cases.
@@ -615,9 +604,8 @@ private function get_output_path( $assoc_args, $subdir ) {
615604 * [--ci=<provider>]
616605 * : Choose a configuration file for a continuous integration provider.
617606 * ---
618- * default: travis
607+ * default: circle
619608 * options:
620- * - travis
621609 * - circle
622610 * - gitlab
623611 * ---
@@ -716,7 +704,7 @@ public function plugin( $args, $assoc_args ) {
716704 * The following files are generated by default:
717705 *
718706 * * `phpunit.xml.dist` is the configuration file for PHPUnit.
719- * * `.travis .yml` is the configuration file for Travis CI . Use `--ci=<provider>` to select a different service.
707+ * * `.circleci/config .yml` is the configuration file for CircleCI . Use `--ci=<provider>` to select a different service.
720708 * * `bin/install-wp-tests.sh` configures the WordPress test suite and a test database.
721709 * * `tests/bootstrap.php` is the file that makes the current plugin active when running the test suite.
722710 * * `tests/test-sample.php` is a sample file containing the actual tests.
@@ -740,9 +728,8 @@ public function plugin( $args, $assoc_args ) {
740728 * [--ci=<provider>]
741729 * : Choose a configuration file for a continuous integration provider.
742730 * ---
743- * default: travis
731+ * default: circle
744732 * options:
745- * - travis
746733 * - circle
747734 * - gitlab
748735 * - bitbucket
@@ -769,7 +756,7 @@ public function plugin_tests( $args, $assoc_args ) {
769756 * The following files are generated by default:
770757 *
771758 * * `phpunit.xml.dist` is the configuration file for PHPUnit.
772- * * `.travis .yml` is the configuration file for Travis CI . Use `--ci=<provider>` to select a different service.
759+ * * `.circleci/config .yml` is the configuration file for CircleCI . Use `--ci=<provider>` to select a different service.
773760 * * `bin/install-wp-tests.sh` configures the WordPress test suite and a test database.
774761 * * `tests/bootstrap.php` is the file that makes the current theme active when running the test suite.
775762 * * `tests/test-sample.php` is a sample file containing the actual tests.
@@ -793,9 +780,8 @@ public function plugin_tests( $args, $assoc_args ) {
793780 * [--ci=<provider>]
794781 * : Choose a configuration file for a continuous integration provider.
795782 * ---
796- * default: travis
783+ * default: circle
797784 * options:
798- * - travis
799785 * - circle
800786 * - gitlab
801787 * - bitbucket
@@ -890,9 +876,7 @@ private function scaffold_plugin_theme_tests( $args, $assoc_args, $type ) {
890876 "{$ tests_dir }/bootstrap.php " => self ::mustache_render ( "{$ type }-bootstrap.mustache " , $ template_data ),
891877 "{$ tests_dir }/test-sample.php " => self ::mustache_render ( "{$ type }-test-sample.mustache " , $ template_data ),
892878 ];
893- if ( 'travis ' === $ assoc_args ['ci ' ] ) {
894- $ files_to_create [ "{$ target_dir }/.travis.yml " ] = self ::mustache_render ( 'plugin-travis.mustache ' , compact ( 'wp_versions_to_test ' ) );
895- } elseif ( 'circle ' === $ assoc_args ['ci ' ] ) {
879+ if ( 'circle ' === $ assoc_args ['ci ' ] ) {
896880 $ files_to_create [ "{$ target_dir }/.circleci/config.yml " ] = self ::mustache_render ( 'plugin-circle.mustache ' , compact ( 'wp_versions_to_test ' ) );
897881 } elseif ( 'gitlab ' === $ assoc_args ['ci ' ] ) {
898882 $ files_to_create [ "{$ target_dir }/.gitlab-ci.yml " ] = self ::mustache_render ( 'plugin-gitlab.mustache ' );
0 commit comments