Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
Add travis
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Jan 30, 2016
1 parent d98fa67 commit a029d6c
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.zip
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
language: php
sudo: false

php:
- 7.0
- 5.6
- 5.5
- 5.4
- 5.3

env:
global:
- PLUGIN=Jabber
- 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/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Jabber/XMPP plugin for Kanboard
===============================

[![Build Status](https://travis-ci.org/kanboard/plugin-jabber.svg?branch=master)](https://travis-ci.org/kanboard/plugin-jabber)

Receive Kanboard notifications on Jabber.

Author
Expand Down
19 changes: 19 additions & 0 deletions Test/PluginTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

require_once 'tests/units/Base.php';

use Kanboard\Plugin\Jabber\Plugin;

class PluginTest extends Base
{
public function testPlugin()
{
$plugin = new Plugin($this->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());
}
}

0 comments on commit a029d6c

Please sign in to comment.