Fix travis
This commit is contained in:
parent
884e8cee90
commit
93184c5f66
14
.travis.yml
14
.travis.yml
@ -341,11 +341,6 @@ script:
|
|||||||
cd -
|
cd -
|
||||||
set +e
|
set +e
|
||||||
echo
|
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"
|
echo "Unit testing"
|
||||||
@ -356,17 +351,12 @@ script:
|
|||||||
echo "Phpunit return code = $phpunitresult"
|
echo "Phpunit return code = $phpunitresult"
|
||||||
set +e
|
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:
|
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
|
tail -n 50 $TRAVIS_BUILD_DIR/documents/dolibarr.log
|
||||||
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- |
|
- |
|
||||||
echo Success
|
echo Success
|
||||||
|
|||||||
@ -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
|
class modSupplierProposal extends DolibarrModules
|
||||||
{
|
{
|
||||||
|
|||||||
@ -134,6 +134,8 @@ class SupplierProposalTest extends PHPUnit_Framework_TestCase
|
|||||||
$langs=$this->savlangs;
|
$langs=$this->savlangs;
|
||||||
$db=$this->savdb;
|
$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=new SupplierProposal($this->savdb);
|
||||||
$localobject->initAsSpecimen();
|
$localobject->initAsSpecimen();
|
||||||
$result=$localobject->create($user);
|
$result=$localobject->create($user);
|
||||||
@ -210,7 +212,9 @@ class SupplierProposalTest extends PHPUnit_Framework_TestCase
|
|||||||
$langs=$this->savlangs;
|
$langs=$this->savlangs;
|
||||||
$db=$this->savdb;
|
$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";
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0);
|
$this->assertLessThan($result, 0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user