mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-28 18:41:34 +08:00
Improve test config
This commit is contained in:
parent
52e2698cdf
commit
49a4131628
2 changed files with 6 additions and 4 deletions
|
@ -11,5 +11,4 @@ before_script:
|
|||
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
|
||||
- nvm install 4.4.5
|
||||
- nvm use 4.4.5
|
||||
- npm install -g gulp
|
||||
- npm install
|
||||
- npm install -g eslint
|
||||
|
|
|
@ -7,9 +7,12 @@ class NpmTest extends \PHPUnit_Framework_TestCase
|
|||
public function testJsValidate()
|
||||
{
|
||||
$out = array();
|
||||
exec('gulp js:validate', $out);
|
||||
|
||||
$this->assertTrue(0 < \count($out));
|
||||
// exec('gulp js:validate', $out);
|
||||
// $this->assertTrue(0 < \count($out));
|
||||
|
||||
exec('eslint -c .eslintrc.js dev/*', $out);
|
||||
$this->assertTrue(\is_array($out));
|
||||
|
||||
$noProblem = false === \strpos(\implode('|', $out), 'problem');
|
||||
if (!$noProblem)
|
||||
|
|
Loading…
Reference in a new issue