forked from WP-API/WP-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (27 loc) · 675 Bytes
/
.travis.yml
File metadata and controls
35 lines (27 loc) · 675 Bytes
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
28
29
30
31
32
33
34
35
# Travis CI Configuration File
# Tell Travis CI we're using PHP
language: php
php:
- 5.2
- 5.3
- 5.5
env:
- WP_VERSION=latest WP_MULTISITE=0
matrix:
include:
- php: 5.2
env: WP_VERSION=latest WP_MULTISITE=1
# Clones WordPress and configures our testing environment.
before_script:
# Setup Coveralls
- phpenv local 5.5
- composer install --dev --no-interaction
- phpenv local --unset
- npm install
- bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 $WP_VERSION
script:
- bash bin/phpcs.sh
- phpunit --coverage-clover clover.xml
after_script:
# Push coverage off to Codecov
- bash <(curl -s https://codecov.io/bash)