File tree Expand file tree Collapse file tree 5 files changed +2278
-1381
lines changed
lib/interface/cli/commands/analyzer Expand file tree Collapse file tree 5 files changed +2278
-1381
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM golang:alpine as go
3
3
RUN apk add --update ca-certificates git
4
4
RUN go get github.com/github/hub
5
5
6
- FROM node:9.2.0 -alpine
6
+ FROM node:10.15.3 -alpine
7
7
8
8
RUN apk add --update ca-certificates git curl jq py-pip bash && pip install yq
9
9
COPY --from=go /go/bin/hub /usr/local/bin/hub
Original file line number Diff line number Diff line change @@ -3,21 +3,27 @@ version: "1.0"
3
3
4
4
steps :
5
5
6
+ prepare_environment_variabels :
7
+ title : ' Prepare environment variables'
8
+ image : codefresh/cli
9
+ commands :
10
+ - cf_export RUNTIME_VERSION=$(jq -r ".engines.node" package.json)
11
+
6
12
install_dependencies :
7
13
title : ' Installing testing dependencies'
8
- image : codefresh/ node-tester-image:8.8.0
14
+ image : node:${{RUNTIME_VERSION}}
9
15
commands :
10
16
- yarn install --frozen-lockfile
11
17
12
18
eslint :
13
19
title : ' Running linting logic'
14
- image : codefresh/ node-tester-image:8.8.0
20
+ image : node:${{RUNTIME_VERSION}}
15
21
commands :
16
22
- yarn eslint
17
23
18
24
unit-tests :
19
25
title : ' Running unit tests'
20
- image : codefresh/ node-tester-image:8.8.0
26
+ image : node:${{RUNTIME_VERSION}}
21
27
commands :
22
28
- yarn test
23
29
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const Logic = require('./analyzer.logic');
5
5
const command = new Command ( {
6
6
root : true ,
7
7
command : 'analyze <repoOwner> <repoName> [context]' ,
8
- description : 'Analyze your repo ' ,
8
+ description : 'Analyzes your git repository and creates a proposed Cofefresh pipeline that clones the source code and builds/packages it ' ,
9
9
webDocs : {
10
10
category : 'Analyzer' ,
11
11
title : 'Analyze'
@@ -23,7 +23,7 @@ const command = new Command({
23
23
describe : 'Your git context that you can get from integrations -> git , if empty - using personal context' ,
24
24
required : false
25
25
} )
26
- . example ( 'codefresh analyze petlove bee github' , 'Analyze repo' ) ,
26
+ . example ( 'codefresh analyze elasticio petstore-component-nodejs github' , 'Analyze repo' ) ,
27
27
handler : async ( argv ) => {
28
28
const { repoOwner, repoName, context } = argv ;
29
29
const yaml = await Logic . analyze ( { repoOwner, repoName, context} ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.25 .0" ,
3
+ "version" : " 0.26 .0" ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
88
88
"author" : " Codefresh" ,
89
89
"license" : " ISC" ,
90
90
"engines" : {
91
- "node" : " >=8.0.0 "
91
+ "node" : " 10.15.3 "
92
92
},
93
93
"jest" : {
94
94
"testEnvironment" : " node" ,
You can’t perform that action at this time.
0 commit comments