fix tests

This commit is contained in:
Philipp Kunz 2017-08-25 21:07:02 +02:00
parent 12e2509f0c
commit 16984d811f
2 changed files with 25 additions and 6 deletions

19
docs/ssh.md Normal file
View File

@ -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
```

View File

@ -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