Skip to content

Commit c592b64

Browse files
Update codefresh.yaml according to regullar standrad
1 parent 88df503 commit c592b64

File tree

2 files changed

+31
-11
lines changed

2 files changed

+31
-11
lines changed

codefresh.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
11
version: '1.0'
22

33
steps:
4-
unit-test-step:
5-
image: node:6.9.2
4+
5+
6+
install_dependencies:
7+
title: 'Installing testing dependencies'
8+
image: codefresh/node-tester-image:8.1.4
9+
commands:
10+
- yarn install --frozen-lockfile
11+
12+
13+
eslint:
14+
title: 'Running linting logic'
15+
image: codefresh/node-tester-image:8.1.4
16+
commands:
17+
- yarn lint
18+
- yarn no-onlys
19+
20+
unit_test_step:
21+
image: codefresh/node-tester-image:8.1.4
622
environment:
723
- COVERALLS_TOKEN=${{COVERALLS_TOKEN}}
8-
working-directory: ${{initial-clone}}
924
commands:
10-
- npm install
11-
- npm run gulp lint
12-
- npm run gulp no.onlys
13-
- npm run gulp unit_test
14-
- npm run gulp coveralls
15-
- npm run gulp integ_test
16-
- npm run gulp clean
25+
- yarn test:ci
1726

1827
build_step:
1928
title: "Building production image"

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,19 @@
3131
"sinon": "^1.17.4",
3232
"sinon-chai": "^2.8.0"
3333
},
34+
"engines": {
35+
"node": "8.1.4"
36+
},
3437
"scripts": {
38+
"lint": "gulp lint",
39+
"no-onlys": "gulp no.onlys",
40+
"test": "gulp unit_test",
41+
"test:integration": "gulp integ_test",
42+
"test:ci": "gulp unit_test && gulp coveralls && gulp clean",
43+
"coveralls": "gulp coveralls",
44+
"clean": "gulp clean",
45+
"start": "node server/index.js",
3546
"gulp": "gulp",
36-
"start": "node lib/index.js"
47+
"eslint": "eslint"
3748
}
3849
}

0 commit comments

Comments
 (0)