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

Commit a029d6c

Browse files
committedJan 30, 2016
Add travis
1 parent d98fa67 commit a029d6c

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.zip

‎.travis.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
language: php
2+
sudo: false
3+
4+
php:
5+
- 7.0
6+
- 5.6
7+
- 5.5
8+
- 5.4
9+
- 5.3
10+
11+
env:
12+
global:
13+
- PLUGIN=Jabber
14+
- KANBOARD_REPO=https://github.com/fguillot/kanboard.git
15+
matrix:
16+
- DB=sqlite
17+
- DB=mysql
18+
- DB=postgres
19+
20+
matrix:
21+
fast_finish: true
22+
23+
install:
24+
- git clone --depth 1 $KANBOARD_REPO
25+
- ln -s $TRAVIS_BUILD_DIR kanboard/plugins/$PLUGIN
26+
27+
before_script:
28+
- cd kanboard
29+
- phpenv config-add tests/php.ini
30+
- composer install
31+
- ls -la plugins/
32+
33+
script:
34+
- phpunit -c tests/units.$DB.xml plugins/$PLUGIN/Test/

‎README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Jabber/XMPP plugin for Kanboard
22
===============================
33

4+
[![Build Status](https://travis-ci.org/kanboard/plugin-jabber.svg?branch=master)](https://travis-ci.org/kanboard/plugin-jabber)
5+
46
Receive Kanboard notifications on Jabber.
57

68
Author

‎Test/PluginTest.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
require_once 'tests/units/Base.php';
4+
5+
use Kanboard\Plugin\Jabber\Plugin;
6+
7+
class PluginTest extends Base
8+
{
9+
public function testPlugin()
10+
{
11+
$plugin = new Plugin($this->container);
12+
$this->assertSame(null, $plugin->initialize());
13+
$this->assertNotEmpty($plugin->getPluginName());
14+
$this->assertNotEmpty($plugin->getPluginDescription());
15+
$this->assertNotEmpty($plugin->getPluginAuthor());
16+
$this->assertNotEmpty($plugin->getPluginVersion());
17+
$this->assertNotEmpty($plugin->getPluginHomepage());
18+
}
19+
}

0 commit comments

Comments
 (0)