Skip to content

Commit

Permalink
Travis: add notifications for e-mail and irc
Browse files Browse the repository at this point in the history
Destinations:
- mantisbt-cvs mailing list
- #mantisbt irc channel

Build failures are always sent, and build success only when status
changes to reduce spam.

Fixes #16175
  • Loading branch information
dregad committed Oct 14, 2013
1 parent ae2560a commit 105f28b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Expand Up @@ -17,3 +17,21 @@ branches:
only:
- master
- master-1.2.x

notifications:
email:
on_success: change
on_failure: always
recipients:
- mantisbt-cvs@lists.sourceforge.net

irc:
on_success: change
on_failure: always
channels:
- "chat.freenode.net#mantisbt"
skip_join: true
template:
- "Build #%{build_number}: %{repository} %{branch} (%{commit}) %{author} - %{message}"
- "Build details: %{build_url}"
- "Code Changes: %{compare_url}"
13 changes: 13 additions & 0 deletions Soap.php
@@ -0,0 +1,13 @@
<?php


$s = new SoapClient( 'http://localhost/mantis/api/soap/mantisconnect.php?wsdl' );
$u = 'administrator';
$p = 'root';
$id = $s->mc_login($u,$p)->account_data->id;
$proj= 1;

echo $id = $categoryList = $s->mc_project_add_category($u,$p, $proj, 'cat') . "\n";
$categoryList = $s->mc_project_get_categories($u,$p, $proj);
var_dump($categoryList);
echo $id = $s->mc_project_delete_category($u,$p, $proj, 'cat'). "\n";
3 changes: 3 additions & 0 deletions test.php
@@ -0,0 +1,3 @@
<?php
include('core.php');
var_dump(category_get_id_by_name('cat',1));

0 comments on commit 105f28b

Please sign in to comment.