mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Add npm tests
This commit is contained in:
parent
d64b6388ae
commit
f7d5ae94c2
2 changed files with 20 additions and 0 deletions
|
|
@ -3,3 +3,8 @@ php:
|
||||||
- '5.3'
|
- '5.3'
|
||||||
- '5.6'
|
- '5.6'
|
||||||
- '7.0'
|
- '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
15
tests/Common/NpmTest.php
Normal 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'));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue