Skip to content

Commit

Permalink
CCI working directory update
Browse files Browse the repository at this point in the history
Added cd dir to design system command and workflow

Update command run config

Fix typo on config

Set setps as an array

Set docker config for CCI

Update docker config on CCI

Set image to docker config

Update directory on CCI

Change to root file dir

Return to original file config and complete test + danger commands

Install dep on directory

Added wroking_directory and checkout path

Update CCI config to run test on correct folder.
Removed DangerJS so it can be configured correctly independenly
  • Loading branch information
jfer-rubio committed Aug 25, 2018
1 parent 3d918c1 commit 9cfa232
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
version: 2

npm_login: &npm_login
run:
name: Login to NPM
command: |
npm config set @wizeline:registry=https://verdaccio.wizeline.sh
npm config set //verdaccio.wizeline.sh/:_authToken=$NPM_TOKEN
jobs:
dependency_install:
docker: &yarn_defaults
- image: node:8.7.0
steps:
- checkout
- run:
name: Login to NPM
command: |
npm config set @wizeline:registry=https://verdaccio.wizeline.sh
npm config set //verdaccio.wizeline.sh/:_authToken=$NPM_TOKEN
- *npm_login
- restore_cache: &restore_yarn_cache
keys:
- v2-yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v2-yarn-cache-{{ .Branch }}
- v2-yarn-cache-master
- v2-yarn-cache
- run: yarn
- run:
name: Build
command: cd design-system && yarn
- save_cache:
key: v2-yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
Expand All @@ -29,18 +34,7 @@ jobs:
- restore_cache: *restore_yarn_cache
- run:
name: Unit test
command: yarn run test
dangerjs:
docker: *yarn_defaults
environment:
NODE_ENV: test
steps:
- checkout
- restore_cache: *restore_yarn_cache
- run:
name: DangerJS
command: yarn danger ci

command: cd design-system && yarn && yarn run test
workflows:
version: 2
continuous_integration:
Expand All @@ -51,7 +45,4 @@ workflows:
context: ppm-js
requires:
- dependency_install
- dangerjs:
context: ppm-js
requires:
- dependency_install

0 comments on commit 9cfa232

Please sign in to comment.