diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4c4ffc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.zip diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..faa82b4 --- /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=Slack + - 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/ diff --git a/LICENSE b/LICENSE index dbe5032..c1efa20 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2015 Frédéric Guillot +Copyright (c) 2014-2016 Frédéric Guillot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index a70ec38..e2578fd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Slack plugin for Kanboard ========================= +[![Build Status](https://travis-ci.org/kanboard/plugin-slack.svg?branch=master)](https://travis-ci.org/kanboard/plugin-slack) + Receive Kanboard notifications on Slack. Author diff --git a/Test/PluginTest.php b/Test/PluginTest.php new file mode 100644 index 0000000..4eeab9e --- /dev/null +++ b/Test/PluginTest.php @@ -0,0 +1,19 @@ +container); + $this->assertSame(null, $plugin->initialize()); + $this->assertNotEmpty($plugin->getPluginName()); + $this->assertNotEmpty($plugin->getPluginDescription()); + $this->assertNotEmpty($plugin->getPluginAuthor()); + $this->assertNotEmpty($plugin->getPluginVersion()); + $this->assertNotEmpty($plugin->getPluginHomepage()); + } +}