2
0
mirror of https://github.com/cderche/greenlock-challenge-s3 synced 2025-05-10 15:36:33 +00:00

Test CI with CC

This commit is contained in:
Cyrille 2019-05-09 13:07:02 +01:00
parent e1c6d43494
commit ccf78101fd

View File

@ -5,11 +5,26 @@ jobs:
- image: circleci/node:10.13 - image: circleci/node:10.13
steps: steps:
- checkout - checkout
- run:
name: Setup dependencies
command: |
sudo composer install -n --prefer-dist
- 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
- run: npm install - run: npm install
- run:
name: Notify Code Climate of a pending test report using `before-build`
command: ./cc-test-reporter before-build
- run: npm run clean - run: npm run clean
- run: npm run coverage - run: npm run coverage
- run: npm run codacy
- run: npm run clean - run: npm run clean
- run:
name: Upload test report to Code Climate using `after-build`
command: ./cc-test-reporter after-build --exit-code $?
- store_artifacts: - store_artifacts:
path: ./coverage path: ./coverage