Add npm tests

This commit is contained in:
RainLoop Team 2016-05-24 22:27:11 +03:00
parent d64b6388ae
commit f7d5ae94c2
2 changed files with 20 additions and 0 deletions

View file

@ -3,3 +3,8 @@ php:
- '5.3'
- '5.6'
- '7.0'
before_script:
- sudo apt-get update
- sudo apt-get install -y nodejs
- npm install -g gulp
- npm install

15
tests/Common/NpmTest.php Normal file
View file

@ -0,0 +1,15 @@
<?php
namespace CommonTests;
class NpmTest extends \PHPUnit_Framework_TestCase
{
public function testJsValidate()
{
$out = array();
exec('gulp js:validate', $out);
$this->assertTrue(0 < \count($out));
$this->assertTrue(false === \strpos(\implode('|', $out), 'problem'));
}
}