Fix travis

This commit is contained in:
Laurent Destailleur 2018-07-01 23:57:54 +02:00
parent 884e8cee90
commit 93184c5f66
3 changed files with 8 additions and 14 deletions

View File

@ -341,11 +341,6 @@ script:
cd -
set +e
echo
#cat $TRAVIS_BUILD_DIR/upgrade400500-2.log
#cat $TRAVIS_BUILD_DIR/upgrade500600.log
#cat $TRAVIS_BUILD_DIR/upgrade500600-2.log
#cat $TRAVIS_BUILD_DIR/upgrade500600-3.log
#cat /tmp/dolibarr_install.log
- |
echo "Unit testing"
@ -356,17 +351,12 @@ script:
echo "Phpunit return code = $phpunitresult"
set +e
- |
echo "Output 50 latest lines of dolibarr.log"
ls $TRAVIS_BUILD_DIR/documents
tail -n 50 $TRAVIS_BUILD_DIR/documents/dolibarr.log
after_script:
- |
echo "After script - Debugging informations for file dolibarr.log (latest 50 lines)"
echo "After script - Output 50 latest lines of dolibarr.log"
ls $TRAVIS_BUILD_DIR/documents
tail -n 50 $TRAVIS_BUILD_DIR/documents/dolibarr.log
after_success:
- |
echo Success

View File

@ -32,7 +32,7 @@ include_once DOL_DOCUMENT_ROOT .'/core/modules/DolibarrModules.class.php';
/**
* Class to describe and enable module AskPriceSupllier
* Class to describe and enable module SupplierProposal
*/
class modSupplierProposal extends DolibarrModules
{

View File

@ -134,6 +134,8 @@ class SupplierProposalTest extends PHPUnit_Framework_TestCase
$langs=$this->savlangs;
$db=$this->savdb;
$user->rights->supplier_proposal->creer = 1; // Not set after the reload of module done in 7.0
$localobject=new SupplierProposal($this->savdb);
$localobject->initAsSpecimen();
$result=$localobject->create($user);
@ -210,7 +212,9 @@ class SupplierProposalTest extends PHPUnit_Framework_TestCase
$langs=$this->savlangs;
$db=$this->savdb;
$result=$localobject->valid($user);
$user->rights->supplier_proposal->creer = 1; // Not set after the reload of module done in 7.0
$result=$localobject->valid($user);
print __METHOD__." id=".$localobject->id." result=".$result."\n";
$this->assertLessThan($result, 0);