Browse Source

npm test now runs test.js

pull/79/merge
Jeremy Wentworth 7 years ago
parent
commit
465ab7e7ed
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      package.json
  2. +2
    -2
      test.js

+ 1
- 1
package.json View File

@@ -3,7 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"description": "*Manifest repository for VCV Rack plugins*", "description": "*Manifest repository for VCV Rack plugins*",
"scripts": { "scripts": {
"test": "echo \"Error: no tests yet\" && exit 0"
"test": "node test.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",


+ 2
- 2
test.js View File

@@ -4,7 +4,7 @@ const { exec } = require('child_process');
const vt = require("node-virustotal");//https://github.com/natewatson999/node-virustotal const vt = require("node-virustotal");//https://github.com/natewatson999/node-virustotal
const con = vt.MakePublicConnection(); const con = vt.MakePublicConnection();
const archArr = ['win', 'lin', 'mac']; const archArr = ['win', 'lin', 'mac'];
const verbose = true;
const verbose = false;


//VT_API_KEY is set in travisci (or set when run locally) //VT_API_KEY is set in travisci (or set when run locally)
con.setKey(process.env.VT_API_KEY); 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){ function testAllManifests(changedManifestFiles){
console.log("changedManifestFiles", changedManifestFiles);
if(verbose){console.log("changedManifestFiles", changedManifestFiles);}
fs.readdir('plugins', function(err, files) { fs.readdir('plugins', function(err, files) {
if (err){ throw err; } if (err){ throw err; }




Loading…
Cancel
Save