GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — nodegit/test/index.js at master · codercatdev/nodegit

Expand file tree

/

index.js

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
41 lines (35 loc) · 1.05 KB
/

index.js

Copy path

File metadata and controls

41 lines (35 loc) · 1.05 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
var fork = require("child_process").fork;
var path = require("path");
var fs = require('fs');
var bin = "./node_modules/.bin/istanbul";
var cov = "cover --report=lcov --dir=test/coverage/js _mocha --".split(" ");
if (process.platform === 'win32') {
bin = "./node_modules/mocha/bin/mocha";
cov = [];
}
var args = cov.concat([
"test/runner",
"test/tests",
"--expose-gc",
"--timeout",
"15000"
]);
if (!process.env.APPVEYOR && !process.env.TRAVIS) {
var local = path.join.bind(path, __dirname);
var dummyPath = local("home");
process.env.HOME = dummyPath;
process.env.USERPROFILE = dummyPath;
}
// unencrypt test keys
function unencryptKey(fileName) {
var base64Contents = fs.readFileSync(
path.join(__dirname, fileName + '.enc'),
'utf8'
);
var asciiContents = Buffer.from(base64Contents, 'base64')
.toString('ascii');
fs.writeFileSync(path.join(__dirname, fileName), asciiContents, 'utf8');
}
unencryptKey('id_rsa');
unencryptKey('nodegit-test-rsa');
fork(bin, args, { cwd: path.join(__dirname, "../") }).on("close", process.exit);
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.