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
33RUN apk add --update ca-certificates git
44RUN go get github.com/github/hub
55
6- FROM node:9.2.0 -alpine
6+ FROM node:10.15.3 -alpine
77
88RUN apk add --update ca-certificates git curl jq py-pip bash && pip install yq
99COPY --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"
33
44steps :
55
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+
612 install_dependencies :
713 title : ' Installing testing dependencies'
8- image : codefresh/ node-tester-image:8.8.0
14+ image : node:${{RUNTIME_VERSION}}
915 commands :
1016 - yarn install --frozen-lockfile
1117
1218 eslint :
1319 title : ' Running linting logic'
14- image : codefresh/ node-tester-image:8.8.0
20+ image : node:${{RUNTIME_VERSION}}
1521 commands :
1622 - yarn eslint
1723
1824 unit-tests :
1925 title : ' Running unit tests'
20- image : codefresh/ node-tester-image:8.8.0
26+ image : node:${{RUNTIME_VERSION}}
2127 commands :
2228 - yarn test
2329
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const Logic = require('./analyzer.logic');
55const command = new Command ( {
66 root : true ,
77 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 ' ,
99 webDocs : {
1010 category : 'Analyzer' ,
1111 title : 'Analyze'
@@ -23,7 +23,7 @@ const command = new Command({
2323 describe : 'Your git context that you can get from integrations -> git , if empty - using personal context' ,
2424 required : false
2525 } )
26- . example ( 'codefresh analyze petlove bee github' , 'Analyze repo' ) ,
26+ . example ( 'codefresh analyze elasticio petstore-component-nodejs github' , 'Analyze repo' ) ,
2727 handler : async ( argv ) => {
2828 const { repoOwner, repoName, context } = argv ;
2929 const yaml = await Logic . analyze ( { repoOwner, repoName, context} ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " codefresh" ,
3- "version" : " 0.25 .0" ,
3+ "version" : " 0.26 .0" ,
44 "description" : " Codefresh command line utility" ,
55 "main" : " index.js" ,
66 "preferGlobal" : true ,
8888 "author" : " Codefresh" ,
8989 "license" : " ISC" ,
9090 "engines" : {
91- "node" : " >=8.0.0 "
91+ "node" : " 10.15.3 "
9292 },
9393 "jest" : {
9494 "testEnvironment" : " node" ,
You can’t perform that action at this time.
0 commit comments