WordPress.org

Make WordPress Core

Ticket #40106: 40106.patch

File 40106.patch, 1.0 KB (added by desrosj, 4 years ago)

Copies .travis.yml file from 3.8 branch.

  • new file .travis.yml

    commit e9149d3336c08511f76a562e2efc1f0c7e31cf44
    Author: Jonathan Desrosiers <desrosj@gmail.com>
    Date:   Tue Apr 25 22:41:38 2017 -0400
    
        Add travis configuration file.
    
    diff --git a/.travis.yml b/.travis.yml
    new file mode 100644
    index 0000000000..6460605321
    - +  
     1language: php
     2
     3php:
     4    - "5.5"
     5    - "5.2"
     6
     7before_script:
     8    - |
     9      stable='^[0-9\.]+$';
     10      if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then
     11          phpenv config-rm xdebug.ini
     12      fi
     13    - mysql -e "CREATE DATABASE wordpress_tests;" -uroot
     14    - cp wp-tests-config-sample.php wp-tests-config.php
     15    - sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
     16    - sed -i "s/yourusernamehere/travis/" wp-tests-config.php
     17    - sed -i "s/yourpasswordhere//" wp-tests-config.php
     18    - svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
     19    - npm install -g grunt-cli
     20    - npm install
     21    - php --version
     22
     23script: grunt test