diff --git a/package.json b/package.json index af62226c..d57bb914 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "*Manifest repository for VCV Rack plugins*", "scripts": { - "test": "echo \"Error: no tests yet\" && exit 0" + "test": "node test.js" }, "repository": { "type": "git", diff --git a/test.js b/test.js index e5a5213b..768c6932 100644 --- a/test.js +++ b/test.js @@ -4,7 +4,7 @@ const { exec } = require('child_process'); const vt = require("node-virustotal");//https://github.com/natewatson999/node-virustotal const con = vt.MakePublicConnection(); const archArr = ['win', 'lin', 'mac']; -const verbose = true; +const verbose = false; //VT_API_KEY is set in travisci (or set when run locally) con.setKey(process.env.VT_API_KEY); @@ -27,7 +27,7 @@ exec('git diff -w --stat --name-only origin/master -- plugins/', (error, stdout, }); function testAllManifests(changedManifestFiles){ - console.log("changedManifestFiles", changedManifestFiles); + if(verbose){console.log("changedManifestFiles", changedManifestFiles);} fs.readdir('plugins', function(err, files) { if (err){ throw err; }