npmci/ts/npmci.env.ts

14 lines
447 B
TypeScript
Raw Normal View History

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