From 56abb6428321fa19073ec05444447e28742c7a2a Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 29 Jan 2016 20:49:15 -0500 Subject: [PATCH] Add travis config --- .travis.yml | 34 ++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..89cc53b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,34 @@ +language: php +sudo: false + +php: + - 7.0 + - 5.6 + - 5.5 + - 5.4 + - 5.3 + +env: + global: + - PLUGIN=GoogleAuth + - KANBOARD_REPO=https://github.com/fguillot/kanboard.git + matrix: + - DB=sqlite + - DB=mysql + - DB=postgres + +matrix: + fast_finish: true + +install: + - git clone --depth 1 $KANBOARD_REPO + - ln -s $TRAVIS_BUILD_DIR kanboard/plugins/$PLUGIN + +before_script: + - cd kanboard + - phpenv config-add tests/php.ini + - composer install + - ls -la plugins/ + +script: + - phpunit -c tests/units.$DB.xml plugins/$PLUGIN/Test/*.php diff --git a/README.md b/README.md index 5ff8921..4c3ba75 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Google Authentication ===================== +[![Build Status](https://travis-ci.org/kanboard/plugin-google-auth.svg?branch=master)](https://travis-ci.org/kanboard/plugin-google-auth) + Link a Google account to a Kanboard user profile. Author