update deps and node version
This commit is contained in:
parent
da180b090c
commit
0427368cfa
6
dist/npmci.install.js
vendored
6
dist/npmci.install.js
vendored
@ -8,10 +8,10 @@ exports.install = (versionArg) => {
|
|||||||
plugins.beautylog.log(`now installing node version ${versionArg}`);
|
plugins.beautylog.log(`now installing node version ${versionArg}`);
|
||||||
let version;
|
let version;
|
||||||
if (versionArg == "stable") {
|
if (versionArg == "stable") {
|
||||||
version = "6.6.0";
|
version = "stable";
|
||||||
}
|
}
|
||||||
else if (versionArg == "lts") {
|
else if (versionArg == "lts") {
|
||||||
version = "6.6.0";
|
version = "--lts";
|
||||||
}
|
}
|
||||||
else if (versionArg == "legacy") {
|
else if (versionArg == "legacy") {
|
||||||
version = "6.6.0";
|
version = "6.6.0";
|
||||||
@ -33,4 +33,4 @@ exports.install = (versionArg) => {
|
|||||||
done.resolve();
|
done.resolve();
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuaW5zdGFsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLmluc3RhbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDBCQUF3QjtBQUN4QiwyQ0FBMkM7QUFDM0MsNkNBQW9DO0FBQ3BDLDZDQUEyQztBQUVoQyxRQUFBLE9BQU8sR0FBRyxDQUFDLFVBQVU7SUFDNUIsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQywrQkFBK0IsVUFBVSxFQUFFLENBQUMsQ0FBQztJQUNuRSxJQUFJLE9BQWUsQ0FBQztJQUNwQixFQUFFLENBQUMsQ0FBQyxVQUFVLElBQUksUUFBUSxDQUFDLENBQUMsQ0FBQztRQUN6QixPQUF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BQztJQUNqRixDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDSixPQUFPLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyx1REFBdUQsQ0FBQyxDQUFDO0lBQ3BGLENBQUM7SUFBQSxDQUFDO0lBQ0YsaUJBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUNoQixpQkFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQ2YsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ2YsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7QUFDeEIsQ0FBQyxDQUFBIn0=
|
2
dist/npmci.publish.js
vendored
2
dist/npmci.publish.js
vendored
@ -40,4 +40,4 @@ let publishDocker = function () {
|
|||||||
.then(done.resolve);
|
.then(done.resolve);
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kucHVibGlzaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLnB1Ymxpc2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDBCQUF3QjtBQUN4QiwyQ0FBMkM7QUFDM0MsbURBQXdDO0FBQ3hDLDZDQUFrQztBQUVsQyx5REFBd0Q7QUFPeEQ7OztHQUdHO0FBQ1EsUUFBQSxPQUFPLEdBQUcsQ0FBQyxhQUFhLEdBQWUsS0FBSztJQUNuRCxNQUFNLENBQUMsQ0FBQyxhQUFhLENBQUMsQ0FBQSxDQUFDO1FBQ25CLEtBQUssS0FBSztZQUNOLE1BQU0sQ0FBQyxVQUFVLEVBQUUsQ0FBQztRQUN4QixLQUFLLFFBQVE7WUFDVCxNQUFNLENBQUMsYUFBYSxFQUFFLENBQUM7SUFDL0IsQ0FBQztBQUNMLENBQUMsQ0FBQztBQUVGOztHQUVHO0FBQ0gsSUFB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eEIsQ0FBQyxDQUFDIn0=
|
28
package.json
28
package.json
@ -23,28 +23,28 @@
|
|||||||
"homepage": "https://gitlab.com/pushrocks/npmci#README",
|
"homepage": "https://gitlab.com/pushrocks/npmci#README",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npmts-g": "^5.2.8",
|
"npmts-g": "^5.2.8",
|
||||||
"should": "^11.1.0",
|
"should": "^11.1.1",
|
||||||
"typings-test": "^1.0.2"
|
"typings-test": "^1.0.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/lodash": "^4.14.34",
|
"@types/lodash": "^4.14.39",
|
||||||
"@types/q": "0.x.x",
|
"@types/q": "0.x.x",
|
||||||
"@types/request": "0.x.x",
|
"@types/request": "0.x.x",
|
||||||
"@types/shelljs": "^0.3.30",
|
"@types/shelljs": "^0.3.32",
|
||||||
"beautylog": "^5.0.23",
|
"beautylog": "^6.0.0",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-function": "^1.3.6",
|
"gulp-function": "^2.2.0",
|
||||||
"lodash": "^4.15.0",
|
"lodash": "^4.17.0",
|
||||||
"projectinfo": "^1.0.3",
|
"projectinfo": "^1.0.4",
|
||||||
"q": "^1.4.1",
|
"q": "^1.4.1",
|
||||||
"request": "^2.74.0",
|
"request": "^2.78.0",
|
||||||
"shelljs": "^0.7.4",
|
"shelljs": "^0.7.5",
|
||||||
"smartcli": "^1.0.9",
|
"smartcli": "^1.0.10",
|
||||||
"smartfile": "^4.0.15",
|
"smartfile": "^4.1.0",
|
||||||
"smartparam": "^0.1.1",
|
"smartparam": "^0.1.1",
|
||||||
"smartsocket": "^1.1.4",
|
"smartsocket": "^1.1.7",
|
||||||
"smartssh": "^1.1.5",
|
"smartssh": "^1.1.5",
|
||||||
"smartstring": "^2.0.17",
|
"smartstring": "^2.0.22",
|
||||||
"through2": "^2.0.1",
|
"through2": "^2.0.1",
|
||||||
"typings-global": "^1.0.14"
|
"typings-global": "^1.0.14"
|
||||||
}
|
}
|
||||||
|
3
test/test.d.ts
vendored
3
test/test.d.ts
vendored
@ -1,2 +1 @@
|
|||||||
import "typings-test";
|
import 'typings-test';
|
||||||
import "should";
|
|
||||||
|
65
test/test.js
65
test/test.js
@ -1,14 +1,14 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
require("typings-test");
|
require("typings-test");
|
||||||
require("should");
|
const should = require("should");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const beautylog = require("beautylog");
|
const beautylog = require("beautylog");
|
||||||
//set up environment
|
// set up environment
|
||||||
process.env.CI_BUILD_REPO = "https://yyyyyy:xxxxxxxx@gitlab.com/mygroup/myrepo.git";
|
process.env.CI_BUILD_REPO = 'https://yyyyyy:xxxxxxxx@gitlab.com/mygroup/myrepo.git';
|
||||||
process.env.NPMCI_SSHKEY_1 = "hostString|somePrivKey|##";
|
process.env.NPMCI_SSHKEY_1 = 'hostString|somePrivKey|##';
|
||||||
process.env.NPMTS_TEST = "true";
|
process.env.NPMTS_TEST = 'true';
|
||||||
process.cwd = () => {
|
process.cwd = () => {
|
||||||
return path.join(__dirname, "assets/");
|
return path.join(__dirname, 'assets/');
|
||||||
};
|
};
|
||||||
const NpmciBuildDocker = require("../dist/npmci.build.docker");
|
const NpmciBuildDocker = require("../dist/npmci.build.docker");
|
||||||
const NpmciPublish = require("../dist/npmci.publish");
|
const NpmciPublish = require("../dist/npmci.publish");
|
||||||
@ -17,70 +17,69 @@ const NpmciSsh = require("../dist/npmci.ssh");
|
|||||||
let dockerfile1;
|
let dockerfile1;
|
||||||
let dockerfile2;
|
let dockerfile2;
|
||||||
let sortableArray;
|
let sortableArray;
|
||||||
describe("NPMCI", function () {
|
describe('NPMCI', function () {
|
||||||
describe("build.docker", function () {
|
describe('build.docker', function () {
|
||||||
it("should return valid Dockerfiles", function () {
|
it('should return valid Dockerfiles', function () {
|
||||||
dockerfile1 = new NpmciBuildDocker.Dockerfile({ filePath: "./Dockerfile", read: true });
|
dockerfile1 = new NpmciBuildDocker.Dockerfile({ filePath: './Dockerfile', read: true });
|
||||||
dockerfile2 = new NpmciBuildDocker.Dockerfile({ filePath: "./Dockerfile_sometag1", read: true });
|
dockerfile2 = new NpmciBuildDocker.Dockerfile({ filePath: './Dockerfile_sometag1', read: true });
|
||||||
dockerfile1.version.should.equal("latest");
|
should(dockerfile1.version).equal('latest');
|
||||||
dockerfile2.version.should.equal("sometag1");
|
should(dockerfile2.version).equal('sometag1');
|
||||||
});
|
});
|
||||||
it("should read a directory of Dockerfiles", function (done) {
|
it('should read a directory of Dockerfiles', function (done) {
|
||||||
NpmciBuildDocker.readDockerfiles()
|
NpmciBuildDocker.readDockerfiles()
|
||||||
.then(function (readDockerfilesArrayArg) {
|
.then(function (readDockerfilesArrayArg) {
|
||||||
readDockerfilesArrayArg[1].version.should.equal("sometag1");
|
should(readDockerfilesArrayArg[1].version).equal('sometag1');
|
||||||
sortableArray = readDockerfilesArrayArg;
|
sortableArray = readDockerfilesArrayArg;
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
it("should sort an array of Dockerfiles", function (done) {
|
it('should sort an array of Dockerfiles', function (done) {
|
||||||
NpmciBuildDocker.sortDockerfiles(sortableArray)
|
NpmciBuildDocker.sortDockerfiles(sortableArray)
|
||||||
.then(function (sortedArrayArg) {
|
.then(function (sortedArrayArg) {
|
||||||
beautylog.success("final result");
|
beautylog.success('final result');
|
||||||
console.log(sortedArrayArg);
|
console.log(sortedArrayArg);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
it("should correctly chain Dockerfile handling", function (done) {
|
it('should correctly chain Dockerfile handling', function (done) {
|
||||||
NpmciBuildDocker.build()
|
NpmciBuildDocker.build()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe(".publish.docker", function () {
|
describe('.publish.docker', function () {
|
||||||
it("should publish all built Dockerfiles", function (done) {
|
it('should publish all built Dockerfiles', function (done) {
|
||||||
NpmciPublish.publish("docker")
|
NpmciPublish.publish('docker')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
;
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe(".test.npm", function () {
|
describe('.test.npm', function () {
|
||||||
it("should source nvm using bash and install a specific node version, then test it", function (done) {
|
it('should source nvm using bash and install a specific node version, then test it', function (done) {
|
||||||
NpmciTest.test("legacy")
|
NpmciTest.test('legacy')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return NpmciTest.test("lts");
|
return NpmciTest.test('lts');
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return NpmciTest.test("stable");
|
return NpmciTest.test('stable');
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe("test.docker", function () {
|
describe('test.docker', function () {
|
||||||
it("should test dockerfiles", function (done) {
|
it('should test dockerfiles', function (done) {
|
||||||
NpmciTest.test("docker")
|
NpmciTest.test('docker')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe("npmci prepare ssh", function () {
|
describe('npmci prepare ssh', function () {
|
||||||
it("should pick up SSH keys", function (done) {
|
it('should pick up SSH keys', function (done) {
|
||||||
NpmciSsh.ssh()
|
NpmciSsh.ssh()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
done();
|
done();
|
||||||
@ -88,4 +87,4 @@ describe("NPMCI", function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3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FBSSxFQUFFLENBQUE7WUFDVixDQUFDLENBQUMsQ0FBQTtRQUNWLENBQUMsQ0FBQyxDQUFBO0lBQ04sQ0FBQyxDQUFDLENBQUE7SUFFRixRQUFRLENBQUMsYUFBYSxFQUFDO1FBQ25CLEVBQUUsQ0FBQyx5QkFBeUIsRUFBQyxVQUFTLElBQUk7WUFDdEMsU0FBUyxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUM7aUJBQ25CLElBQUksQ0FBQztnQkFDRixJQUFJLEVBQUUsQ0FBQTtZQUNWLENBQUMsQ0FBQyxDQUFBO1FBQ1YsQ0FBQyxDQUFDLENBQUE7SUFDTixDQUFDLENBQUMsQ0FBQztJQUNILFFBQVEsQ0FBQyxtQkFBbUIsRUFBQztRQUN6QixFQUFFLENBQUMseUJBQXlCLEVBQUMsVUFBUyxJQUFJO1lBQ3RDLFFBQVEsQ0FBQyxHQUFHLEVBQUU7aUJBQ1QsSUFBSSxDQUFDO2dCQUNGLElBQUksRUFBRSxDQUFBO1lBQ1YsQ0FBQyxDQUFDLENBQUE7UUFDVixDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFDLENBQUEifQ==
|
165
test/test.ts
165
test/test.ts
@ -1,94 +1,101 @@
|
|||||||
import "typings-test";
|
import 'typings-test'
|
||||||
import "should";
|
import * as should from 'should'
|
||||||
import path = require("path");
|
import path = require('path')
|
||||||
import * as beautylog from "beautylog"
|
import * as beautylog from 'beautylog'
|
||||||
//set up environment
|
|
||||||
process.env.CI_BUILD_REPO = "https://yyyyyy:xxxxxxxx@gitlab.com/mygroup/myrepo.git";
|
// set up environment
|
||||||
process.env.NPMCI_SSHKEY_1 = "hostString|somePrivKey|##"
|
process.env.CI_BUILD_REPO = 'https://yyyyyy:xxxxxxxx@gitlab.com/mygroup/myrepo.git'
|
||||||
process.env.NPMTS_TEST = "true";
|
process.env.NPMCI_SSHKEY_1 = 'hostString|somePrivKey|##'
|
||||||
|
process.env.NPMTS_TEST = 'true'
|
||||||
process.cwd = () => {
|
process.cwd = () => {
|
||||||
return path.join(__dirname,"assets/");
|
return path.join(__dirname,'assets/')
|
||||||
};
|
}
|
||||||
|
|
||||||
//require NPMCI files
|
// require NPMCI files
|
||||||
import npmci = require("../dist/index");
|
import npmci = require('../dist/index')
|
||||||
import NpmciBuildDocker = require("../dist/npmci.build.docker");
|
import NpmciBuildDocker = require('../dist/npmci.build.docker')
|
||||||
import NpmciPublish = require("../dist/npmci.publish");
|
import NpmciPublish = require('../dist/npmci.publish')
|
||||||
import NpmciTest = require("../dist/npmci.test");
|
import NpmciTest = require('../dist/npmci.test')
|
||||||
import NpmciSsh = require("../dist/npmci.ssh")
|
import NpmciSsh = require('../dist/npmci.ssh')
|
||||||
|
|
||||||
|
|
||||||
let dockerfile1:NpmciBuildDocker.Dockerfile;
|
let dockerfile1: NpmciBuildDocker.Dockerfile
|
||||||
let dockerfile2:NpmciBuildDocker.Dockerfile;
|
let dockerfile2: NpmciBuildDocker.Dockerfile
|
||||||
let sortableArray:NpmciBuildDocker.Dockerfile[];
|
let sortableArray: NpmciBuildDocker.Dockerfile[]
|
||||||
|
|
||||||
describe("NPMCI",function(){
|
describe('NPMCI',function(){
|
||||||
describe("build.docker",function(){
|
describe('build.docker',function(){
|
||||||
it("should return valid Dockerfiles",function(){
|
it('should return valid Dockerfiles',function(){
|
||||||
dockerfile1 = new NpmciBuildDocker.Dockerfile({filePath:"./Dockerfile",read:true});
|
dockerfile1 = new NpmciBuildDocker.Dockerfile({filePath: './Dockerfile', read: true})
|
||||||
dockerfile2 = new NpmciBuildDocker.Dockerfile({filePath:"./Dockerfile_sometag1",read:true});
|
dockerfile2 = new NpmciBuildDocker.Dockerfile({filePath: './Dockerfile_sometag1', read: true})
|
||||||
dockerfile1.version.should.equal("latest");
|
should(dockerfile1.version).equal('latest')
|
||||||
dockerfile2.version.should.equal("sometag1");
|
should(dockerfile2.version).equal('sometag1')
|
||||||
});
|
})
|
||||||
it("should read a directory of Dockerfiles",function(done){
|
|
||||||
|
it('should read a directory of Dockerfiles',function(done){
|
||||||
NpmciBuildDocker.readDockerfiles()
|
NpmciBuildDocker.readDockerfiles()
|
||||||
.then(function(readDockerfilesArrayArg:NpmciBuildDocker.Dockerfile[]){
|
.then(function(readDockerfilesArrayArg: NpmciBuildDocker.Dockerfile[]){
|
||||||
readDockerfilesArrayArg[1].version.should.equal("sometag1");
|
should(readDockerfilesArrayArg[1].version).equal('sometag1')
|
||||||
sortableArray = readDockerfilesArrayArg
|
sortableArray = readDockerfilesArrayArg
|
||||||
done();
|
done()
|
||||||
});
|
})
|
||||||
})
|
})
|
||||||
it("should sort an array of Dockerfiles",function(done){
|
|
||||||
|
it('should sort an array of Dockerfiles',function(done){
|
||||||
NpmciBuildDocker.sortDockerfiles(sortableArray)
|
NpmciBuildDocker.sortDockerfiles(sortableArray)
|
||||||
.then(function(sortedArrayArg:NpmciBuildDocker.Dockerfile[]){
|
.then(function(sortedArrayArg: NpmciBuildDocker.Dockerfile[]){
|
||||||
beautylog.success("final result");
|
beautylog.success('final result')
|
||||||
console.log(sortedArrayArg);
|
console.log(sortedArrayArg)
|
||||||
done();
|
done()
|
||||||
})
|
})
|
||||||
});
|
})
|
||||||
it("should correctly chain Dockerfile handling",function(done){
|
|
||||||
|
it('should correctly chain Dockerfile handling', function(done){
|
||||||
NpmciBuildDocker.build()
|
NpmciBuildDocker.build()
|
||||||
.then(()=>{
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
})
|
|
||||||
});
|
|
||||||
describe(".publish.docker",function(){
|
|
||||||
it("should publish all built Dockerfiles",function(done){
|
|
||||||
NpmciPublish.publish("docker")
|
|
||||||
.then(() => {
|
.then(() => {
|
||||||
done();
|
done()
|
||||||
});;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe(".test.npm",function(){
|
|
||||||
it("should source nvm using bash and install a specific node version, then test it",function(done){
|
|
||||||
NpmciTest.test("legacy")
|
|
||||||
.then(() => {
|
|
||||||
return NpmciTest.test("lts");
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
return NpmciTest.test("stable");
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
})
|
|
||||||
});
|
|
||||||
describe("test.docker",function(){
|
|
||||||
it("should test dockerfiles",function(done){
|
|
||||||
NpmciTest.test("docker")
|
|
||||||
.then(() => {
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
})
|
|
||||||
});
|
|
||||||
describe("npmci prepare ssh",function(){
|
|
||||||
it("should pick up SSH keys",function(done){
|
|
||||||
NpmciSsh.ssh()
|
|
||||||
.then(() => {
|
|
||||||
done();
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
|
||||||
|
describe('.publish.docker',function(){
|
||||||
|
it('should publish all built Dockerfiles',function(done){
|
||||||
|
NpmciPublish.publish('docker')
|
||||||
|
.then(() => {
|
||||||
|
done()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('.test.npm',function(){
|
||||||
|
it('should source nvm using bash and install a specific node version, then test it',function(done){
|
||||||
|
NpmciTest.test('legacy')
|
||||||
|
.then(() => {
|
||||||
|
return NpmciTest.test('lts')
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
return NpmciTest.test('stable')
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
done()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('test.docker',function(){
|
||||||
|
it('should test dockerfiles',function(done){
|
||||||
|
NpmciTest.test('docker')
|
||||||
|
.then(() => {
|
||||||
|
done()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
});
|
||||||
|
describe('npmci prepare ssh',function(){
|
||||||
|
it('should pick up SSH keys',function(done){
|
||||||
|
NpmciSsh.ssh()
|
||||||
|
.then(() => {
|
||||||
|
done()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
@ -8,9 +8,9 @@ export let install = (versionArg) => {
|
|||||||
plugins.beautylog.log(`now installing node version ${versionArg}`);
|
plugins.beautylog.log(`now installing node version ${versionArg}`);
|
||||||
let version: string;
|
let version: string;
|
||||||
if (versionArg == "stable") {
|
if (versionArg == "stable") {
|
||||||
version = "6.6.0";
|
version = "stable";
|
||||||
} else if (versionArg == "lts") {
|
} else if (versionArg == "lts") {
|
||||||
version = "6.6.0";
|
version = "--lts";
|
||||||
} else if (versionArg == "legacy") {
|
} else if (versionArg == "legacy") {
|
||||||
version = "6.6.0"
|
version = "6.6.0"
|
||||||
} else {
|
} else {
|
||||||
|
3
tslint.json
Normal file
3
tslint.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": "tslint-config-standard"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user