Ticket #36930: 36930.1.diff
File 36930.1.diff, 2.1 KB (added by , 8 years ago) |
---|
-
.travis.yml
1 1 sudo: false 2 2 language: php 3 3 cache: 4 apt: true 4 5 directories: 5 6 - node_modules 7 env: 8 global: 9 - WP_TRAVISCI=travis:phpunit 6 10 matrix: 7 11 include: 8 - php: 5.512 - php: 7 9 13 env: WP_TRAVISCI=travis:js 10 14 - php: 5.2 11 env: WP_TRAVISCI=travis:phpunit12 15 - php: 5.3 13 env: WP_TRAVISCI=travis:phpunit14 16 - php: 5.4 15 env: WP_TRAVISCI=travis:phpunit16 17 - php: 5.5 17 env: WP_TRAVISCI=travis:phpunit18 18 - php: 5.6 19 env: WP_TRAVISCI=travis:phpunit20 19 - php: 5.6 21 env: WP_TRAVIS CI=travis:phpunit WP_TRAVIS_OBJECT_CACHE=true20 env: WP_TRAVIS_OBJECT_CACHE=true 22 21 services: memcached 23 22 - 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 25 32 - php: 7.0 26 env: WP_TRAVISCI=travis:phpunit27 33 - php: nightly 28 env: WP_TRAVISCI=travis:phpunit29 34 allow_failures: 30 35 - php: hhvm 31 36 - php: nightly 32 37 before_install: 33 - WP_CORE_DIR=/tmp/wordpress/34 38 - git clone https://github.com/WordPress/twentysixteen.git src/wp-content/themes/twentysixteen 35 39 - | 36 40 if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then 37 mysql - e "CREATE DATABASE wordpress_tests;" -uroot41 mysql -u root -e "CREATE DATABASE wordpress_tests;" 38 42 cp wp-tests-config-sample.php wp-tests-config.php 39 43 sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php 40 sed -i "s/yourusernamehere/ travis/" wp-tests-config.php44 sed -i "s/yourusernamehere/root/" wp-tests-config.php 41 45 sed -i "s/yourpasswordhere//" wp-tests-config.php 42 46 svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer 43 47 fi … … 51 55 - npm install -g grunt-cli 52 56 - npm install 53 57 - npm prune 58 - mysql --version 59 - phpenv versions 54 60 script: grunt $WP_TRAVISCI 55 61 notifications: 56 62 slack: