Skip to:
Content

bbPress.org

Changeset 6373


Ignore:
Timestamp:
03/10/2017 05:02:10 AM (9 years ago)
Author:
netweb
Message:

Build/Test Tools: Update .travis.yml to explicitly use PHPUnit 5.7 for the PHP 7 builds on Travis.

  • Add some more debugging to Travis.
  • Clean up indentation.

Fixes #3085.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r6351 r6373  
    1414# PHP version used in first build configuration.
    1515php:
    16     - 7.1
    17     - 7.0
    18     - 5.6
    19     - 5.5
    20     - 5.4
    21     - 5.3
    22     - 5.2
     16  - 7.1
     17  - 7.0
     18  - 5.6
     19  - 5.5
     20  - 5.4
     21  - 5.3
     22  - 5.2
    2323
    2424# WordPress comes from the Git mirror, where 'master' mirrors svn 'trunk' and
    2525# x.y mirrors the latest from the x.y branch
    2626env:
    27     - WP_VERSION=master
    28     - WP_VERSION=4.7
     27  - WP_VERSION=master
     28  - WP_VERSION=4.7
    2929
    3030# Build matrix options
     
    7575    # setup NodeJS version using NVM
    7676    - node --version
    77     - nvm install 4
     77    - nvm install 6
    7878    - node --version
    7979    - npm install -g grunt-cli
     
    8181    - phpenv versions
    8282    - mysql --version
     83    - php --version
     84    - php -m
     85    - phpunit --version
     86    - curl --version
     87    - grunt --version
     88    - git --version
     89    - svn --version
    8390
    8491# before_script: Failures in this section will result in build status 'failed'
    8592before_script:
    8693  - stable='^[0-9\.]+$'; if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then phpenv config-rm xdebug.ini; fi
     94  - export PATH="$HOME/.composer/vendor/bin:$PATH"
     95  - |
     96  if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
     97    composer global require "phpunit/phpunit=5.7.*"
     98  elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
     99    composer global require "phpunit/phpunit=4.8.*"
     100  fi
    87101  - npm install
    88102  - grunt build
  • trunk/tests/phpunit/testcases/common/formatting.php

    r6347 r6373  
    135135        $this->assertEquals( $at_name_comma_final, bbp_make_clickable( $at_name_comma ) );
    136136
    137         // Don"t link non-existent users
     137        // Don't link non-existent users
    138138        $text = "Don't link @non @existent @users";
    139139        $this->assertSame( $text, bbp_make_clickable( $text ) );
     
    174174
    175175        // Multiples
    176         $at_name_in_mailto       = sprintf( "Send messages to @%s, @%s.", $link_1, $link_2 );
     176        $at_name_in_mailto       = sprintf( "Send messages to @%s, @%s.", $name_1, $name_2 );
    177177        $at_name_in_mailto_final = sprintf( "Send messages to @%s, @%s.", $link_1, $link_2 );
    178178        $this->assertEquals( $at_name_in_mailto_final, bbp_make_clickable( $at_name_in_mailto ) );
     179
     180        // Two names separated by `&`
     181        $at_names_inbetween_ampersand       = sprintf( "Oh hi @%s & @%s.", $name_1, $name_2 );
     182        $at_names_inbetween_ampersand_final = sprintf( "Oh hi @%s & @%s.", $link_1, $link_2 );
     183        $this->assertEquals( $at_names_inbetween_ampersand_final, bbp_make_clickable( $at_names_inbetween_ampersand ) );
     184
     185        // Two names separated by `and`
     186        $at_names_inbetween_and       = sprintf( "Oh hi @%s and @%s.", $name_1, $name_2 );
     187        $at_names_inbetween_and_final = sprintf( "Oh hi @%s and @%s.", $link_1, $link_2 );
     188        $this->assertEquals( $at_names_inbetween_and_final, bbp_make_clickable( $at_names_inbetween_and ) );
    179189
    180190        remove_filter( 'bbp_make_mentions_clickable_classes', '__return_empty_array' );
     
    213223
    214224        // Multiples
    215         $at_name_in_mailto       = sprintf( "Send messages to @%s, @non1, @%s, @non2.", $link_1, $link_2 );
     225        $at_name_in_mailto       = sprintf( "Send messages to @%s, @non1, @%s, @non2.", $name_1, $name_2 );
    216226        $at_name_in_mailto_final = sprintf( "Send messages to @%s, @non1, @%s, @non2.", $link_1, $link_2 );
    217227        $this->assertEquals( $at_name_in_mailto_final, bbp_make_clickable( $at_name_in_mailto ) );
Note: See TracChangeset for help on using the changeset viewer.