npmci/ts/npmci.env.ts

14 lines
436 B
TypeScript
Raw Normal View History

2018-04-04 20:25:13 +00:00
import * as plugins from './npmci.plugins';
import * as paths from './npmci.paths';
import { GitRepo } from 'smartstring';
import { Dockerfile } from './mod_docker/index';
/**
* a info instance about the git respoitory at cwd :)
*/
2018-04-04 20:25:13 +00:00
let repoString: string = process.env.CI_REPOSITORY_URL;
2017-09-08 21:16:09 +00:00
if (!repoString) {
2018-04-04 20:25:13 +00:00
repoString = 'https://undefined:undefined@github.com/undefined/undefined.git';
2017-07-19 07:40:48 +00:00
}
2018-04-04 20:25:13 +00:00
export let repo = new GitRepo(repoString);