From 16984d811fe4165923d3d86fd3fcecdc60c132a6 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 25 Aug 2017 21:07:02 +0200 Subject: [PATCH] fix tests --- docs/ssh.md | 19 +++++++++++++++++++ test/test.ts | 12 ++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 docs/ssh.md diff --git a/docs/ssh.md b/docs/ssh.md new file mode 100644 index 0000000..3816023 --- /dev/null +++ b/docs/ssh.md @@ -0,0 +1,19 @@ +# SSH +npmci allows easy usage of ssh: + +## Add the SSH KEY to the environment + +To make npmci aware of any SSH KEY add it to the environment in the following format +``` +# Key +NPMCI_SSHKEY_[A_NAME_FROM_YOU] +# Value: +[targeted host]|[privatekey as base64]|*** +``` + +## Use npmci cli tool in your ci script +``` +npmci prepare ssh +npmci command git remote add heroku ssh://git@heroku.com/[you project name].git +npmci command git push heroku master +``` diff --git a/test/test.ts b/test/test.ts index 8701576..7887d29 100644 --- a/test/test.ts +++ b/test/test.ts @@ -10,12 +10,12 @@ process.cwd = () => { } // require NPMCI files -import '../dist/index' -import NpmciBuildDocker = require('../dist/mod_docker/index') -import NpmciPublish = require('../dist/mod_publish/index') -import NpmciTest = require('../dist/mod_test/index') -import NpmciSsh = require('../dist/mod_ssh/index') -import NpmciEnv = require('../dist/npmci.env') +import '../ts/index' +import NpmciBuildDocker = require('../ts/mod_docker/index') +import NpmciPublish = require('../ts/mod_publish/index') +import NpmciTest = require('../ts/mod_test/index') +import NpmciSsh = require('../ts/mod_ssh/index') +import NpmciEnv = require('../ts/npmci.env') let dockerfile1: NpmciBuildDocker.Dockerfile let dockerfile2: NpmciBuildDocker.Dockerfile