Make WordPress Core

Ticket #36930: 36930.1.diff

File 36930.1.diff, 2.1 KB (added by netweb, 8 years ago)
  • .travis.yml

     
    11sudo: false
    22language: php
    33cache:
     4  apt: true
    45  directories:
    56    - node_modules
     7env:
     8  global:
     9    - WP_TRAVISCI=travis:phpunit
    610matrix:
    711  include:
    8   - php: 5.5
     12  - php: 7
    913    env: WP_TRAVISCI=travis:js
    1014  - php: 5.2
    11     env: WP_TRAVISCI=travis:phpunit
    1215  - php: 5.3
    13     env: WP_TRAVISCI=travis:phpunit
    1416  - php: 5.4
    15     env: WP_TRAVISCI=travis:phpunit
    1617  - php: 5.5
    17     env: WP_TRAVISCI=travis:phpunit
    1818  - php: 5.6
    19     env: WP_TRAVISCI=travis:phpunit
    2019  - php: 5.6
    21     env: WP_TRAVISCI=travis:phpunit WP_TRAVIS_OBJECT_CACHE=true
     20    env: WP_TRAVIS_OBJECT_CACHE=true
    2221    services: memcached
    2322  - php: hhvm
    24     env: WP_TRAVISCI=travis:phpunit
     23    sudo: required
     24    dist: trusty
     25    group: edge
     26    addons:
     27      apt:
     28        packages:
     29        - mysql-server-5.6
     30        - mysql-client-core-5.6
     31        - mysql-client-5.6
    2532  - php: 7.0
    26     env: WP_TRAVISCI=travis:phpunit
    2733  - php: nightly
    28     env: WP_TRAVISCI=travis:phpunit
    2934  allow_failures:
    3035  - php: hhvm
    3136  - php: nightly
    3237before_install:
    33 - WP_CORE_DIR=/tmp/wordpress/
    3438- git clone https://github.com/WordPress/twentysixteen.git src/wp-content/themes/twentysixteen
    3539- |
    3640  if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
    37       mysql -e "CREATE DATABASE wordpress_tests;" -uroot
     41      mysql -u root -e "CREATE DATABASE wordpress_tests;"
    3842      cp wp-tests-config-sample.php wp-tests-config.php
    3943      sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
    40       sed -i "s/yourusernamehere/travis/" wp-tests-config.php
     44      sed -i "s/yourusernamehere/root/" wp-tests-config.php
    4145      sed -i "s/yourpasswordhere//" wp-tests-config.php
    4246      svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
    4347  fi
     
    5155- npm install -g grunt-cli
    5256- npm install
    5357- npm prune
     58- mysql --version
     59- phpenv versions
    5460script: grunt $WP_TRAVISCI
    5561notifications:
    5662  slack: