Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fcd04415be | |||
| 1fd1899099 | |||
| 7df7f882d1 | |||
| 348b4d60fd | |||
| 37589fb5e5 | |||
| 3dd115fe42 | |||
| 01c88a6a6c | |||
| f5cacb7400 | |||
| 887da51d78 | |||
| 585703fc55 | |||
| ec3e296d73 | |||
| 33f234cf73 | |||
| e7ec765ed5 | |||
| 2f46197864 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ coverage/
|
|||||||
public/
|
public/
|
||||||
config.json
|
config.json
|
||||||
.yarn/
|
.yarn/
|
||||||
|
.npmci_cache
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ image: hosttoday/ht-docker-node:npmci
|
|||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- .yarn/
|
- .npmci_cache/
|
||||||
key: "$CI_BUILD_STAGE"
|
key: "$CI_BUILD_STAGE"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
@@ -26,8 +26,8 @@ mirror:
|
|||||||
snyk:
|
snyk:
|
||||||
stage: security
|
stage: security
|
||||||
script:
|
script:
|
||||||
- npmci command yarn global add snyk
|
- npmci command npm install -g snyk
|
||||||
- npmci command yarn install --ignore-scripts
|
- npmci command npm install --ignore-scripts
|
||||||
- npmci command snyk test
|
- npmci command snyk test
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
@@ -117,8 +117,9 @@ pages:
|
|||||||
image: hosttoday/ht-docker-node:npmci
|
image: hosttoday/ht-docker-node:npmci
|
||||||
stage: metadata
|
stage: metadata
|
||||||
script:
|
script:
|
||||||
- npmci command yarn global add npmpage
|
- npmci command npm install -g typedoc typescript
|
||||||
- npmci command npmpage
|
- npmci npm install
|
||||||
|
- npmci command typedoc --module "commonjs" --target "ES2016" --out public/ ts/
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- notpriv
|
- notpriv
|
||||||
@@ -128,3 +129,14 @@ pages:
|
|||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
|
windowsCompatibility:
|
||||||
|
image: stefanscherer/node-windows:10-build-tools
|
||||||
|
stage: metadata
|
||||||
|
script:
|
||||||
|
- npm install & npm test
|
||||||
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
|
tags:
|
||||||
|
- windows
|
||||||
|
allow_failure: true
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
node_modules/
|
|
||||||
test/
|
|
||||||
.yarn/
|
|
||||||
13
.snyk
13
.snyk
@@ -12,4 +12,17 @@ ignore:
|
|||||||
- smartssh > shelljs:
|
- smartssh > shelljs:
|
||||||
reason: None given
|
reason: None given
|
||||||
expires: '2018-06-02T22:48:10.660Z'
|
expires: '2018-06-02T22:48:10.660Z'
|
||||||
|
- smartshell > shelljs:
|
||||||
|
reason: None given
|
||||||
|
expires: '2018-08-14T21:49:25.248Z'
|
||||||
|
- smartssh > shelljs:
|
||||||
|
reason: None given
|
||||||
|
expires: '2018-08-14T21:49:25.248Z'
|
||||||
|
- shelljs:
|
||||||
|
reason: None given
|
||||||
|
expires: '2018-08-14T21:49:25.248Z'
|
||||||
|
'npm:stringstream:20180511':
|
||||||
|
- request > stringstream:
|
||||||
|
reason: None given
|
||||||
|
expires: '2018-08-14T21:49:25.248Z'
|
||||||
patch: {}
|
patch: {}
|
||||||
|
|||||||
2500
package-lock.json
generated
Normal file
2500
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
33
package.json
33
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@shipzone/npmci",
|
"name": "@shipzone/npmci",
|
||||||
"version": "3.0.49",
|
"version": "3.0.56",
|
||||||
"description": "node and docker in gitlab ci on steroids",
|
"description": "node and docker in gitlab ci on steroids",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"npmci": "dist/cli.js"
|
"npmci": "dist/cli.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(rm -f config.json) && (npmts) && (npm run testVersion)",
|
"test": "(rm -f config.json) && tsrun test/test.ts",
|
||||||
"build": "(rm -f config.json) && (npmts) && (npm run testVersion)",
|
"build": "(rm -f config.json) && (npmts) && (npm run testVersion)",
|
||||||
"testVersion": "(cd test/assets/ && node ../../dist/cli.js -v)"
|
"testVersion": "(cd test/assets/ && node ../../dist/cli.js -v)"
|
||||||
},
|
},
|
||||||
@@ -23,30 +23,31 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/gitzone/npmci#README",
|
"homepage": "https://gitlab.com/gitzone/npmci#README",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tapbundle": "^2.0.0"
|
"@gitzone/tsrun": "^1.1.9",
|
||||||
|
"@pushrocks/tapbundle": "^3.0.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartcli": "^3.0.1",
|
"@pushrocks/smartcli": "^3.0.2",
|
||||||
"@types/lodash": "^4.14.74",
|
"@pushrocks/smartdelay": "^2.0.1",
|
||||||
"@types/shelljs": "^0.7.4",
|
"@pushrocks/smartfile": "^6.0.3",
|
||||||
|
"@pushrocks/smartpromise": "^2.0.5",
|
||||||
|
"@types/lodash": "^4.14.112",
|
||||||
|
"@types/shelljs": "^0.8.0",
|
||||||
"@types/through2": "^2.0.33",
|
"@types/through2": "^2.0.33",
|
||||||
"beautylog": "^6.1.10",
|
"beautylog": "^6.1.10",
|
||||||
"cflare": "^1.0.5",
|
"cflare": "^1.0.5",
|
||||||
"lik": "^2.0.5",
|
"lik": "^2.0.5",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.10",
|
||||||
"npmextra": "^2.0.9",
|
"npmextra": "^2.0.9",
|
||||||
"projectinfo": "^3.0.2",
|
"projectinfo": "^3.0.4",
|
||||||
"request": "^2.81.0",
|
"request": "^2.87.0",
|
||||||
"shelljs": "^0.8.1",
|
"shelljs": "^0.8.2",
|
||||||
"smartanalytics": "^2.0.9",
|
"smartanalytics": "^2.0.9",
|
||||||
"smartdelay": "^1.0.3",
|
|
||||||
"smartfile": "^4.2.20",
|
|
||||||
"smartparam": "^1.0.2",
|
"smartparam": "^1.0.2",
|
||||||
"smartq": "^1.1.6",
|
"smartshell": "^1.0.19",
|
||||||
"smartshell": "^1.0.18",
|
"smartsocket": "^1.1.19",
|
||||||
"smartsocket": "^1.1.10",
|
|
||||||
"smartssh": "^1.2.2",
|
"smartssh": "^1.2.2",
|
||||||
"smartstring": "^2.0.24",
|
"smartstring": "^2.0.28",
|
||||||
"smartsystem": "^2.0.2",
|
"smartsystem": "^2.0.2",
|
||||||
"through2": "^2.0.3"
|
"through2": "^2.0.3"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ npmci is designed to work in docker CI environments. The following docker images
|
|||||||
|
|
||||||
Docker Hub:
|
Docker Hub:
|
||||||
|
|
||||||
* [hosttoday/ht-docker-node:npmci](https://hub.docker.com/r/hosttoday/ht-docker-node/)
|
- [hosttoday/ht-docker-node:npmci](https://hub.docker.com/r/hosttoday/ht-docker-node/)
|
||||||
has LTS node version and npmci preinstalled.
|
has LTS node version and npmci preinstalled.
|
||||||
* [hosttoday/ht-docker-dbase](https://hub.docker.com/r/hosttoday/ht-docker-dbase/)
|
- [hosttoday/ht-docker-dbase](https://hub.docker.com/r/hosttoday/ht-docker-dbase/)
|
||||||
based on docker:git, can be used to build docker images in conjunction with docker:dind
|
based on docker:git, can be used to build docker images in conjunction with docker:dind
|
||||||
|
|
||||||
npmci can be called from commandline and handle a lot of tasks durug ci:
|
npmci can be called from commandline and handle a lot of tasks durug ci:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { tap, expect } from 'tapbundle';
|
import { tap, expect } from '@pushrocks/tapbundle';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
|
||||||
// Setup test
|
// Setup test
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export let readDockerfiles = async (): Promise<Dockerfile[]> => {
|
|||||||
* @returns Promise<Dockerfile[]>
|
* @returns Promise<Dockerfile[]>
|
||||||
*/
|
*/
|
||||||
export let sortDockerfiles = (sortableArrayArg: Dockerfile[]): Promise<Dockerfile[]> => {
|
export let sortDockerfiles = (sortableArrayArg: Dockerfile[]): Promise<Dockerfile[]> => {
|
||||||
let done = plugins.q.defer<Dockerfile[]>();
|
let done = plugins.smartpromise.defer<Dockerfile[]>();
|
||||||
plugins.beautylog.info('sorting Dockerfiles:');
|
plugins.beautylog.info('sorting Dockerfiles:');
|
||||||
let sortedArray: Dockerfile[] = [];
|
let sortedArray: Dockerfile[] = [];
|
||||||
let cleanTagsOriginal = cleanTagsArrayFunction(sortableArrayArg, sortedArray);
|
let cleanTagsOriginal = cleanTagsArrayFunction(sortableArrayArg, sortedArray);
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ export let install = async 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 = '9';
|
version = '10';
|
||||||
} else if (versionArg === 'lts') {
|
} else if (versionArg === 'lts') {
|
||||||
version = '8';
|
version = '8';
|
||||||
} else if (versionArg === 'legacy') {
|
} else if (versionArg === 'legacy') {
|
||||||
version = '8';
|
version = '9';
|
||||||
} else {
|
} else {
|
||||||
version = versionArg;
|
version = versionArg;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import * as plugins from './npmci.plugins';
|
import * as plugins from './npmci.plugins';
|
||||||
import * as paths from './npmci.paths';
|
import * as paths from './npmci.paths';
|
||||||
|
|
||||||
import * as smartq from 'smartq';
|
import * as smartpromise from '@pushrocks/smartpromise';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wether nvm is available or not
|
* wether nvm is available or not
|
||||||
*/
|
*/
|
||||||
export let nvmAvailable = smartq.defer<boolean>();
|
export let nvmAvailable = smartpromise.defer<boolean>();
|
||||||
/**
|
/**
|
||||||
* the smartshell instance for npmci
|
* the smartshell instance for npmci
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -3,14 +3,13 @@ export import lodash = require('lodash');
|
|||||||
export import npmextra = require('npmextra');
|
export import npmextra = require('npmextra');
|
||||||
export import path = require('path');
|
export import path = require('path');
|
||||||
export import projectinfo = require('projectinfo');
|
export import projectinfo = require('projectinfo');
|
||||||
export import q = require('smartq');
|
|
||||||
export let request = require('request');
|
export let request = require('request');
|
||||||
export import smartcli = require('@pushrocks/smartcli');
|
export import smartcli = require('@pushrocks/smartcli');
|
||||||
export import smartdelay = require('smartdelay');
|
export import smartdelay = require('@pushrocks/smartdelay');
|
||||||
export import smartfile = require('smartfile');
|
export import smartfile = require('@pushrocks/smartfile');
|
||||||
export import shelljs = require('shelljs');
|
export import shelljs = require('shelljs');
|
||||||
export import smartparam = require('smartparam');
|
export import smartparam = require('smartparam');
|
||||||
export import smartq = require('smartq');
|
export import smartpromise = require('@pushrocks/smartpromise');
|
||||||
export import smartshell = require('smartshell');
|
export import smartshell = require('smartshell');
|
||||||
export import smartsocket = require('smartsocket');
|
export import smartsocket = require('smartsocket');
|
||||||
export import smartsystem = require('smartsystem');
|
export import smartsystem = require('smartsystem');
|
||||||
|
|||||||
Reference in New Issue
Block a user