Skip to content

Commit

Permalink
chore(ci): Update CircleCI config
Browse files Browse the repository at this point in the history
Update .circleci/config.yml to match the current default config created
by sfdx plugins:generate

Related to: #133
  • Loading branch information
VivekMChawla committed Feb 23, 2019
1 parent a02b2ac commit 3c35c24
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,50 @@ jobs:
docker:
- image: node:latest
working_directory: ~/cli
environment:
NYC: "yarn exec nyc -- --nycrc-path node_modules/@oclif/nyc-config/.nycrc"
steps:
- checkout
- restore_cache: &restore_cache
keys:
- v1-yarn-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
- v1-yarn-{{checksum ".circleci/config.yml"}}
- v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
- v1-npm-{{checksum ".circleci/config.yml"}}
- run:
name: Install dependencies
command: |
.circleci/greenkeeper
yarn add -D nyc@11 @oclif/nyc-config@1
command: yarn
- run:
name: Testing
command: $NYC yarn test
command: yarn test
- run:
name: Submitting code coverage to codecov
command: |
$NYC report --reporter text-lcov > coverage.lcov
./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash
node-8:
<<: *test
docker:
- image: node:8
cache:
<<: *test
steps:
- checkout
- run:
name: Install dependencies
command: yarn
- save_cache:
key: v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
paths:
- ~/cli/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn

workflows:
version: 2
"sfdx-falcon":
jobs:
- node-latest
- node-8
- cache:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/

0 comments on commit 3c35c24

Please sign in to comment.