From 49a4131628711d05bc8f9753bb4a1757683108ad Mon Sep 17 00:00:00 2001 From: RainLoop Team Date: Sat, 2 Jul 2016 13:50:03 +0300 Subject: [PATCH] Improve test config --- .travis.yml | 3 +-- tests/Common/NpmTest.php | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index db4c1f43e..9a949e9a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/Common/NpmTest.php b/tests/Common/NpmTest.php index 9e4a4755e..ee3d676ac 100644 --- a/tests/Common/NpmTest.php +++ b/tests/Common/NpmTest.php @@ -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)