chore: trying to fix circle config
MODIFY
.circleci/config.yml
.circleci/config.yml
---
version: 2
jobs:
- node-latest-multi: &test
+ lint: &lint
docker:
- image: node:latest
environment:
- TEST_SERIES: 1
working_directory: ~/cli
+ steps:
+ - checkout
+ - restore_cache: &restore_cache
+ keys:
+ - v001-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
+ - v001-{{checksum ".circleci/config.yml"}}
+ - v001
+ - run: .circleci/greenkeeper
+ - run: yarn add -D nyc@11 @anycli/nyc-config@0 mocha-junit-reporter@1 @commitlint/cli@6 @commitlint/config-conventional@6
+ - run: yarn exec commitlint -- -x @commitlint/config-conventional --from origin/master
+ - run: yarn exec nps lint
+ - persist_to_workspace: {root: node_modules, paths: ["*"]}
+ node-latest-multi:
+ <<: *lint
steps: &multi_steps
- checkout
- restore_cache: *restore_cache
@@ -16,7 +30,7 @@ jobs:
- store_test_results: &store_test_results
path: ~/cli/reports
node-latest-base:
- <<: *test
+ <<: *lint
steps: &base_steps
- checkout
- restore_cache: *restore_cache
@@ -25,7 +39,7 @@ jobs:
- run: yarn exec nps test.base
- store_test_results: *store_test_results
node-latest-plugin:
- <<: *test
+ <<: *lint
steps: &plugin_steps
- checkout
- restore_cache: *restore_cache
@@ -34,7 +48,7 @@ jobs:
- run: yarn exec nps test.plugin
- store_test_results: *store_test_results
node-latest-single:
- <<: *test
+ <<: *lint
steps: &single_steps
- checkout
- restore_cache: *restore_cache
@@ -43,7 +57,7 @@ jobs:
- run: yarn exec nps test.single
- store_test_results: *store_test_results
node-latest-command:
- <<: *test
+ <<: *lint
docker:
- image: node:8
steps: &command_steps
@@ -54,7 +68,7 @@ jobs:
- run: yarn exec nps test.command
- store_test_results: *store_test_results
node-8-base: &node_8
- <<: *test
+ <<: *lint
docker:
- image: node:8
steps: *base_steps
@@ -74,23 +88,8 @@ jobs:
<<: *node_8
steps: *command_steps
- lint:
- <<: *test
- steps:
- - checkout
- - restore_cache: &restore_cache
- keys:
- - v001-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
- - v001-{{checksum ".circleci/config.yml"}}
- - v001
- - run: .circleci/greenkeeper
- - run: yarn add -D nyc@11 @anycli/nyc-config@0 mocha-junit-reporter@1 @commitlint/cli@6 @commitlint/config-conventional@6
- - run: yarn exec commitlint -- -x @commitlint/config-conventional --from origin/master
- - run: yarn exec nps lint
- - persist_to_workspace: {root: node_modules, paths: ["*"]}
-
cache:
- <<: *test
+ <<: *lint
steps:
- checkout
- restore_cache:
@@ -106,7 +105,7 @@ jobs:
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
release:
- <<: *test
+ <<: *lint
steps:
- add_ssh_keys
- checkout
@@ -124,6 +123,7 @@ workflows:
- node-latest-plugin: {requires: [lint] }
- node-latest-multi: {requires: [lint] }
- node-latest-command: {requires: [lint] }
+ - cache: {requires: [release] }
- release:
context: org-global
filters:
@@ -135,7 +135,6 @@ workflows:
- node-latest-plugin
- node-latest-multi
- node-latest-command
- - cache: {requires: [release] }
nightly:
triggers:
- schedule:

chore: trying to fix circle config