WordPress.org

Make WordPress Core

Changeset 37555


Ignore:
Timestamp:
05/25/2016 06:11:20 AM (4 years ago)
Author:
pento
Message:

Tests: Upgrade the HHVM job to use Ubuntu Trusty, and a more recent version of HHVM.

Also includes some tidying up of the .travis.yml file.

Props netweb.

Fixes #36930.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r37340 r37555  
    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
     
    5256- npm install
    5357- npm prune
     58- mysql --version
     59- phpenv versions
    5460script: grunt $WP_TRAVISCI
    5561notifications:
Note: See TracChangeset for help on using the changeset viewer.