Make WordPress Core

Ticket #34694: xwp.wordpress-develop.34694.pr135.7ea00442...d13d9f40.diff

File xwp.wordpress-develop.34694.pr135.7ea00442...d13d9f40.diff, 2.6 KB (added by xwp-bot, 9 years ago)

PR 135, ±Δ 7ea00442...d13d9f40, Tests: ✅ PASS

  • Remove extra semicolons (by Weston Ruter)
  • Temporarily cache-bust external requests (by Weston Ruter)
  • Run custom scripts before other scripts (by Weston Ruter)
  • Remove cache busting for custom scripts (by Weston Ruter)
  • .travis.yml

    diff --git .travis.yml .travis.yml
    index 7eeff03..3b65331 100644
    matrix: 
    2727  - php: hhvm
    2828  - php: nightly
    2929before_install:
     30- |
     31  if [[ "$WP_TRAVISCI_CUSTOM_BEFORE_INSTALL_SRC" ]]; then
     32    echo "Running custom BEFORE_INSTALL from $WP_TRAVISCI_CUSTOM_BEFORE_INSTALL_SRC"
     33    wget -O /tmp/custom-before-install.sh "$WP_TRAVISCI_CUSTOM_BEFORE_INSTALL_SRC"
     34    source /tmp/custom-before-install.sh
     35  fi
    3036- WP_CORE_DIR=/tmp/wordpress/
    3137- git clone https://github.com/WordPress/twentysixteen.git src/wp-content/themes/twentysixteen
    3238- |
    3339  if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
    34       mysql -e "CREATE DATABASE wordpress_tests;" -uroot
    35       cp wp-tests-config-sample.php wp-tests-config.php
    36       sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
    37       sed -i "s/yourusernamehere/travis/" wp-tests-config.php
    38       sed -i "s/yourpasswordhere//" wp-tests-config.php
    39       svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
     40    mysql -e "CREATE DATABASE wordpress_tests;" -uroot
     41    cp wp-tests-config-sample.php wp-tests-config.php
     42    sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
     43    sed -i "s/yourusernamehere/travis/" wp-tests-config.php
     44    sed -i "s/yourpasswordhere//" wp-tests-config.php
     45    svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
    4046  fi
    4147- |
    4248  if [[ "$WP_TRAVIS_OBJECT_CACHE" == "true" ]]; then
    before_install: 
    4450    echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
    4551  fi
    4652before_script:
     53- |
     54  if [[ "$WP_TRAVISCI_CUSTOM_BEFORE_SCRIPT_SRC" ]]; then
     55    echo "Running custom BEFORE_SCRIPT from $WP_TRAVISCI_CUSTOM_BEFORE_SCRIPT_SRC"
     56    wget -O /tmp/custom-before-script.sh "$WP_TRAVISCI_CUSTOM_BEFORE_SCRIPT_SRC"
     57    source /tmp/custom-before-script.sh
     58  fi
    4759- npm install -g npm
    4860- npm install -g grunt-cli
    4961- npm install
    50 script: grunt $WP_TRAVISCI
     62script:
     63- |
     64  if [[ "$WP_TRAVISCI_CUSTOM_SCRIPT_SRC" ]]; then
     65    echo "Running custom after_script from $WP_TRAVISCI_CUSTOM_SCRIPT_SRC"
     66    wget -O /tmp/custom-script.sh "$WP_TRAVISCI_CUSTOM_SCRIPT_SRC"
     67    source /tmp/custom-script.sh
     68  fi
     69- grunt $WP_TRAVISCI
     70after_script:
     71- |
     72  if [[ "$WP_TRAVISCI_CUSTOM_AFTER_SCRIPT_SRC" ]]; then
     73    echo "Running custom after_script from $WP_TRAVISCI_CUSTOM_AFTER_SCRIPT_SRC"
     74    wget -O /tmp/custom-after-script.sh "$WP_TRAVISCI_CUSTOM_AFTER_SCRIPT_SRC"
     75    source /tmp/custom-after-script.sh
     76  fi
    5177notifications:
    5278  slack:
    5379    rooms: