File tree Expand file tree Collapse file tree 2 files changed +31
-11
lines changed Expand file tree Collapse file tree 2 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 1
1
version : ' 1.0'
2
2
3
3
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
6
22
environment :
7
23
- COVERALLS_TOKEN=${{COVERALLS_TOKEN}}
8
- working-directory : ${{initial-clone}}
9
24
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
17
26
18
27
build_step :
19
28
title : " Building production image"
Original file line number Diff line number Diff line change 31
31
"sinon" : " ^1.17.4" ,
32
32
"sinon-chai" : " ^2.8.0"
33
33
},
34
+ "engines" : {
35
+ "node" : " 8.1.4"
36
+ },
34
37
"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" ,
35
46
"gulp" : " gulp" ,
36
- "start " : " node lib/index.js "
47
+ "eslint " : " eslint "
37
48
}
38
49
}
You can’t perform that action at this time.
0 commit comments