|
| 1 | +# Travis CI Configuration File |
| 2 | + |
| 3 | +# Tell Travis CI we're using PHP |
1 | 4 | language: php |
2 | 5 |
|
3 | | -php: |
4 | | - - "5.2" |
5 | | - - "5.3" |
6 | | - - "5.4" |
7 | | - - "5.5" |
| 6 | +# Build matrix options |
| 7 | +matrix: |
| 8 | + include: |
| 9 | + - php: 5.5 |
| 10 | + env: WP_TRAVISCI=travis:js |
| 11 | + - php: 5.2 |
| 12 | + env: WP_TRAVISCI=travis:phpunit |
| 13 | + - php: 5.3 |
| 14 | + env: WP_TRAVISCI=travis:phpunit |
| 15 | + - php: 5.4 |
| 16 | + env: WP_TRAVISCI=travis:phpunit |
| 17 | + - php: 5.5 |
| 18 | + env: WP_TRAVISCI=travis:phpunit |
| 19 | + - php: 5.6 |
| 20 | + env: WP_TRAVISCI=travis:phpunit |
| 21 | + - php: hhvm |
| 22 | + env: WP_TRAVISCI=travis:phpunit |
| 23 | + allow_failures: |
| 24 | + - php: 5.6 |
| 25 | + - php: hhvm |
| 26 | + fast_finish: true |
| 27 | + |
| 28 | +# Before install, failures in this section will result in build status 'errored' |
| 29 | +before_install: |
| 30 | + - WP_CORE_DIR=/tmp/wordpress/ |
| 31 | + - > |
| 32 | + if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then |
| 33 | + mysql -e "CREATE DATABASE wordpress_tests;" -uroot |
| 34 | + cp wp-tests-config-sample.php wp-tests-config.php |
| 35 | + sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php |
| 36 | + sed -i "s/yourusernamehere/travis/" wp-tests-config.php |
| 37 | + sed -i "s/yourpasswordhere//" wp-tests-config.php |
| 38 | + svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer |
| 39 | + fi |
8 | 40 |
|
| 41 | +# Before script, failures in this section will result in build status 'failed' |
9 | 42 | before_script: |
10 | | - - mysql -e "CREATE DATABASE wordpress_tests;" -uroot |
11 | | - - cp wp-tests-config-sample.php wp-tests-config.php |
12 | | - - sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php |
13 | | - - sed -i "s/yourusernamehere/travis/" wp-tests-config.php |
14 | | - - sed -i "s/yourpasswordhere//" wp-tests-config.php |
15 | | - - svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer |
16 | | - - npm install -g grunt-cli |
17 | | - - npm install |
| 43 | + - npm install -g grunt-cli |
| 44 | + - npm install |
18 | 45 |
|
19 | | -script: grunt travis |
| 46 | +# Script, failures in this section will result in build status 'failed' |
| 47 | +script: grunt $WP_TRAVISCI |
0 commit comments