From 5ddb6605012438e6f8af8e44108b1778fc1d54fc Mon Sep 17 00:00:00 2001 From: Nick Croft Date: Mon, 18 Dec 2017 12:58:52 -0500 Subject: [PATCH] remove travis and circle need to set this up later but for now removing it --- .travis.yml | 52 ---------------------------------------------------- circle.yml | 44 -------------------------------------------- 2 files changed, 96 deletions(-) delete mode 100644 .travis.yml delete mode 100644 circle.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fe0b022..0000000 --- a/.travis.yml +++ /dev/null @@ -1,52 +0,0 @@ -# Travis CI Configuration File - -# Tell Travis CI we're using PHP -language: php - -# PHP version used in first build configuration. -php: - - "5.5" - -# WordPress version used in first build configuration. -env: - - WP_VERSION=master - -# Next we define our matrix of additional build configurations to test against. -# The versions listed above will automatically create our first configuration, -# so it doesn't need to be re-defined below. - -# WP_VERSION specifies the tag to use. The way these tests are configured to run -# requires at least WordPress 3.8. Specify "master" to test against SVN trunk. - -# Note that Travis CI supports listing these above to automatically build a -# matrix of configurations, but we're being nice here by manually building a -# total of four configurations even though we're testing 4 versions of PHP -# along with 2 versions of WordPress (which would build 8 configs otherwise). -# This takes half as long to run while still providing adequate coverage. - -matrix: - include: - - php: "5.3" - env: WP_VERSION=master - - php: "5.4" - env: WP_VERSION=3.8 - - php: "5.2" - env: WP_VERSION=3.8 - -# Clones WordPress and configures our testing environment. -before_script: - - export PLUGIN_SLUG=$(basename $(pwd)) - - git clone https://github.com/tierra/wordpress.git /tmp/wordpress -# - git clone . "/tmp/wordpress/src/wp-content/plugins/$PLUGIN_SLUG" - - cd .. - - mv $PLUGIN_SLUG "/tmp/wordpress/src/wp-content/plugins/$PLUGIN_SLUG" - - cd /tmp/wordpress - - git checkout $WP_VERSION - - mysql -e "CREATE DATABASE wordpress_tests;" -uroot - - cp wp-tests-config-sample.php wp-tests-config.php - - sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php - - sed -i "s/yourusernamehere/travis/" wp-tests-config.php - - sed -i "s/yourpasswordhere//" wp-tests-config.php - - cd "/tmp/wordpress/src/wp-content/plugins/$PLUGIN_SLUG" - -script: phpunit \ No newline at end of file diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 71b632a..0000000 --- a/circle.yml +++ /dev/null @@ -1,44 +0,0 @@ -## Customize the test machine -machine: - - timezone: - America/Denver # Set the timezone - - # Version of php to use - php: - version: 5.4.21 - - # Add some environment variables - environment: - CIRCLE_ENV: test - WP_MULTISITE: 0 - WP_CORE_DIR: /home/ubuntu/wordpress-develop - WP_TESTS_DIR: /home/ubuntu/wordpress-develop/tests/phpunit - plugin_loc: /home/ubuntu/$CIRCLE_PROJECT_REPONAME - plugin_slug: $CIRCLE_PROJECT_REPONAME - plugin_dir: /home/ubuntu/wordpress-develop/src/wp-content/plugins/$plugin_slug - plugin_tests_dir: /home/ubuntu/wordpress-develop/src/wp-content/plugins/$plugin_slug/tests - - -## Customize dependencies -dependencies: - pre: - #enable xdebug. LINE 1/2 to uncomment if you want to run a code coverage report. - # - sed -i 's/^;//' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini - #setup WP install - - git clone git://develop.git.wordpress.org/ $WP_CORE_DIR; - - cd $WP_CORE_DIR && cp wp-tests-config-sample.php wp-tests-config.php && sed -i "s/youremptytestdbnamehere/wordpress_test/" wp-tests-config.php && sed -i "s/yourusernamehere/root/" wp-tests-config.php && sed -i "s/yourpasswordhere//" wp-tests-config.php; - # move plugin into tests/src - - mv $plugin_loc $plugin_dir; - # set up database - - mysql -e 'CREATE DATABASE wordpress_test;' -uroot; - # setup phpunit - - wget https://phar.phpunit.de/phpunit.phar && chmod +x phpunit.phar && mv phpunit.phar /home/ubuntu/.phpenv/shims/phpunit - -## tests override -test: - override: - # comment out the below line to run a code coverage report. - - cd $plugin_tests_dir; phpunit - ## LINE 2/2 to uncomment if you want to run a code coverage report. - # - cd $plugin_tests_dir; phpunit --coverage-html $CIRCLE_ARTIFACTS