Add travis-ci file

This commit is contained in:
Champ Camba
2017-06-08 21:05:40 +08:00
parent ea87899031
commit 56779d3799
+27
View File
@@ -0,0 +1,27 @@
sudo: false
language: php
notifications:
on_success: never
on_failure: change
php:
- nightly # PHP 7.0
- 5.6
- 5.5
- 5.4
env:
- WP_PROJECT_TYPE=plugin WP_VERSION=latest WP_MULTISITE=0 WP_TEST_URL=http://localhost:12000 WP_TEST_USER=test WP_TEST_USER_PASS=test
matrix:
allow_failures:
- php: nightly
before_script:
- git clone https://github.com/Seravo/wordpress-test-template wp-tests
- bash wp-tests/bin/install-wp-tests.sh test root '' localhost $WP_VERSION
script:
- cd wp-tests/spec && bundle exec rspec test.rb