Skip to content

Commit

Permalink
fix: fixed circle config
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 1, 2018
1 parent 96d5653 commit 9a8166e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions templates/circle.yml.ejs
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
<%_
let deps = [
'nyc@11',
'@anycli/nyc-config@0',
'mocha-junit-reporter@1',
]
if (semantic_release) deps.push('@commitlint/cli@6', '@commitlint/config-conventional@6')
deps = deps.join(' ')
_%>
---
version: 2
jobs:
node-latest: &test
docker:
- image: node:latest
working_directory: ~/cli
environment:
NYC: yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc
steps:
- checkout
- restore_cache: &restore_cache
Expand All @@ -14,20 +25,20 @@ jobs:
- v0
- run: .circleci/setup_git
- run: .circleci/greenkeeper
- run: yarn add -D nyc@11 @anycli/nyc-config@0 mocha-junit-reporter@1<%- semantic_release ? " @commitlint/cli@6 @commitlint/config-conventional@6" : "" %>
- run: yarn add -D <%- deps %>
<%_ if (mocha) { _%>
- run:
name: yarn test
when: always
environment: {MOCHA_FILE: reports/mocha.xml}
command: |
mkdir -p reports
yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc yarn test --reporter mocha-junit-reporter
$NYC yarn test --reporter mocha-junit-reporter
- run:
name: submit code coverage
command: |
yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash
$NYC report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash
<%_ } else { _%>
- run: yarn test
<%_ } _%>
Expand Down

0 comments on commit 9a8166e

Please sign in to comment.