forked from 10up/ElasticPress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (21 loc) · 880 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
language: php
php:
- "5.5"
- "5.3"
env:
- WP_VERSION=latest WP_MULTISITE=0
- WP_VERSION=latest WP_MULTISITE=1
- WP_VERSION=3.8 WP_MULTISITE=0
- WP_VERSION=3.8 WP_MULTISITE=1
services:
- elasticsearch
before_script:
- mkdir -p build/logs
- if [ "$(phpenv version-name)" != "5.2" ]; then composer install --dev; fi;
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- sleep 5
script:
- if [ "$(phpenv version-name)" != "5.2" ]; then phpunit --coverage-clover build/logs/clover.xml; else phpunit; fi;
after_script:
- ./vendor/bin/test-reporter --stdout > codeclimate.json
- "if [ \"$(phpenv version-name)\" != \"5.2\" ]; then curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports; fi;"