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. git-svn-id: https://develop.svn.wordpress.org/trunk@37555 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8ebfe1c0d2
commit
7de95455cc
32
.travis.yml
32
.travis.yml
|
@ -1,43 +1,47 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: php
|
language: php
|
||||||
cache:
|
cache:
|
||||||
|
apt: true
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- WP_TRAVISCI=travis:phpunit
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- php: 5.5
|
- php: 7
|
||||||
env: WP_TRAVISCI=travis:js
|
env: WP_TRAVISCI=travis:js
|
||||||
- php: 5.2
|
- php: 5.2
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
|
||||||
- php: 5.3
|
- php: 5.3
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
|
||||||
- php: 5.4
|
- php: 5.4
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
|
||||||
- php: 5.5
|
- php: 5.5
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
env: WP_TRAVISCI=travis:phpunit WP_TRAVIS_OBJECT_CACHE=true
|
env: WP_TRAVIS_OBJECT_CACHE=true
|
||||||
services: memcached
|
services: memcached
|
||||||
- php: hhvm
|
- php: hhvm
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
|
group: edge
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- mysql-server-5.6
|
||||||
|
- mysql-client-core-5.6
|
||||||
|
- mysql-client-5.6
|
||||||
- php: 7.0
|
- php: 7.0
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
|
||||||
- php: nightly
|
- php: nightly
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: hhvm
|
- php: hhvm
|
||||||
- php: nightly
|
- php: nightly
|
||||||
before_install:
|
before_install:
|
||||||
- WP_CORE_DIR=/tmp/wordpress/
|
|
||||||
- git clone https://github.com/WordPress/twentysixteen.git src/wp-content/themes/twentysixteen
|
- git clone https://github.com/WordPress/twentysixteen.git src/wp-content/themes/twentysixteen
|
||||||
- |
|
- |
|
||||||
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
|
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
|
||||||
mysql -e "CREATE DATABASE wordpress_tests;" -uroot
|
mysql -u root -e "CREATE DATABASE wordpress_tests;"
|
||||||
cp wp-tests-config-sample.php wp-tests-config.php
|
cp wp-tests-config-sample.php wp-tests-config.php
|
||||||
sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
|
sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
|
||||||
sed -i "s/yourusernamehere/travis/" wp-tests-config.php
|
sed -i "s/yourusernamehere/root/" wp-tests-config.php
|
||||||
sed -i "s/yourpasswordhere//" wp-tests-config.php
|
sed -i "s/yourpasswordhere//" wp-tests-config.php
|
||||||
svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
|
svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
|
||||||
fi
|
fi
|
||||||
|
@ -51,6 +55,8 @@ before_script:
|
||||||
- npm install -g grunt-cli
|
- npm install -g grunt-cli
|
||||||
- npm install
|
- npm install
|
||||||
- npm prune
|
- npm prune
|
||||||
|
- mysql --version
|
||||||
|
- phpenv versions
|
||||||
script: grunt $WP_TRAVISCI
|
script: grunt $WP_TRAVISCI
|
||||||
notifications:
|
notifications:
|
||||||
slack:
|
slack:
|
||||||
|
|
Loading…
Reference in New Issue