|
1 | 1 | box: node:argon |
2 | 2 |
|
3 | 3 | services: |
4 | | - - mongo:latest |
| 4 | + - mongo:latest |
5 | 5 |
|
6 | 6 | build: |
7 | | - steps: |
8 | | - - script: |
9 | | - name: echo nodejs information |
10 | | - code: | |
11 | | - echo "node version $(node -v) running" |
12 | | - echo "npm version $(npm -v) running" |
13 | | -
|
14 | | - - npm-install |
15 | | - |
16 | | - - script: |
17 | | - name: lint |
18 | | - code: npm run lint |
19 | | - |
20 | | - - npm-test |
21 | | - |
22 | | - after-steps: |
23 | | - - turistforeningen/slack-notifier: |
24 | | - url: $SLACK_WEBHOOK_URL |
25 | | - |
26 | | -deploy: |
27 | | - steps: |
28 | | - # Reinstall node_modules to fix broken symlinks |
29 | | - # https://github.com/wercker/docs/issues/310 |
30 | | - - script: |
31 | | - name: rm node_modules |
32 | | - code: rm -rf node_modules |
33 | | - |
34 | | - - npm-install |
35 | | - |
36 | | - - script: |
37 | | - name: semantic release pre |
38 | | - code: npm run semantic-release -- pre |
39 | | - |
40 | | - - turistforeningen/npm-publish |
41 | | - |
42 | | - - script: |
43 | | - name: semantic release post |
44 | | - code: npm run semantic-release -- post |
45 | | - |
46 | | - after-steps: |
47 | | - - turistforeningen/slack-notifier: |
48 | | - url: $SLACK_WEBHOOK_URL |
| 7 | + steps: |
| 8 | + - script: |
| 9 | + name: echo nodejs information |
| 10 | + code: | |
| 11 | + echo "node version $(node -v) running" |
| 12 | + echo "npm version $(npm -v) running" |
| 13 | +
|
| 14 | + - npm-install |
| 15 | + |
| 16 | + - script: |
| 17 | + name: lint |
| 18 | + code: npm run lint |
| 19 | + |
| 20 | + - npm-test |
| 21 | + |
| 22 | + - script: |
| 23 | + name: test coverage |
| 24 | + code: | |
| 25 | + npm run cover |
| 26 | + cat ./coverage/lcov.info | npm run codacy-coverage |
| 27 | +
|
| 28 | + - script: |
| 29 | + name: node security project |
| 30 | + code: | |
| 31 | + npm run nsp |
| 32 | +
|
| 33 | + after-steps: |
| 34 | + - turistforeningen/slack-notifier: |
| 35 | + url: $SLACK_WEBHOOK_URL |
| 36 | + |
| 37 | +npm: |
| 38 | + steps: |
| 39 | + # Rebuild node_modules to fix broken symlinks |
| 40 | + # https://github.com/wercker/docs/issues/310 |
| 41 | + - script: |
| 42 | + name: npm rebuild |
| 43 | + code: npm rebuild |
| 44 | + |
| 45 | + - script: |
| 46 | + name: semantic release pre |
| 47 | + code: npm run semantic-release -- pre |
| 48 | + |
| 49 | + - turistforeningen/npm-publish |
| 50 | + |
| 51 | + - script: |
| 52 | + name: semantic release post |
| 53 | + code: npm run semantic-release -- post |
| 54 | + |
| 55 | + after-steps: |
| 56 | + - turistforeningen/slack-notifier: |
| 57 | + url: $SLACK_WEBHOOK_URL |
0 commit comments