npmci/ts/npmci.test.ts

16 lines
573 B
TypeScript
Raw Permalink Normal View History

2016-05-30 00:28:47 +00:00
import "typings-global";
import * as plugins from "./npmci.plugins";
import {install} from "./npmci.install";
export let test = (versionArg) => {
let done = plugins.q.defer();
install(versionArg)
.then(function(){
2016-05-30 00:35:44 +00:00
plugins.beautylog.info("now installing dependencies:");
plugins.shelljs.exec("npm install");
2016-05-30 00:28:47 +00:00
plugins.beautylog.info("now starting tests:");
plugins.shelljs.exec("npm test");
plugins.beautylog.success("test finished");
done.resolve();
})
return done.promise;
2016-05-29 20:54:59 +00:00
}