From 56779d3799f406f49c5ea8305c1a806248e410ad Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Thu, 8 Jun 2017 21:05:40 +0800 Subject: [PATCH] Add travis-ci file --- .travis.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..64df7f11 --- /dev/null +++ b/.travis.yml @@ -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 \ No newline at end of file