2
0
mirror of https://github.com/cderche/greenlock-storage-s3 synced 2025-02-22 06:08:04 +00:00

31 lines
912 B
YAML
Raw Normal View History

2019-05-08 12:04:12 +01:00
version: 2
jobs:
test:
docker:
- image: circleci/node:10.13
steps:
- checkout
2019-05-09 13:20:16 +01:00
- run:
name: Setup Code Climate test-reporter
command: |
# download test reporter as a static binary
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
2019-05-08 12:04:12 +01:00
- run: npm install
2019-05-09 13:20:16 +01:00
- run:
name: Notify Code Climate of a pending test report using `before-build`
command: ./cc-test-reporter before-build
2019-05-08 12:04:12 +01:00
- run: npm run clean
2019-05-09 08:56:33 +01:00
- run: npm run coverage
2019-05-08 12:04:12 +01:00
- run: npm run clean
2019-05-09 13:20:16 +01:00
- run:
name: Upload test report to Code Climate using `after-build`
command: ./cc-test-reporter after-build --exit-code $?
2019-05-09 08:56:33 +01:00
- store_artifacts:
2019-05-09 10:07:11 +01:00
path: ./coverage
2019-05-08 12:04:12 +01:00
workflows:
version: 2
test:
jobs:
- test