circleci use attach_workspace

This commit is contained in:
Pooya Parsa 2018-03-19 10:57:08 +03:30
parent 17b01d0aa8
commit 9f0bb806f5

View File

@ -1,7 +1,7 @@
version: 2 version: 2
defaults: &defaults defaults: &defaults
working_directory: /usr/src/app working_directory: ~/project/nuxt
docker: docker:
- image: banian/node-headless-chrome - image: banian/node-headless-chrome
@ -27,9 +27,17 @@ jobs:
paths: paths:
- "node_modules" - "node_modules"
# Persist files
- persist_to_workspace:
root: ~/project
paths:
- nuxt
lint: lint:
<<: *defaults <<: *defaults
steps: steps:
- attach_workspace:
at: ~/project
- run: - run:
name: ESLint name: ESLint
command: yarn lint command: yarn lint
@ -37,6 +45,8 @@ jobs:
build: build:
<<: *defaults <<: *defaults
steps: steps:
- attach_workspace:
at: ~/project
- run: - run:
name: Build Fixtures name: Build Fixtures
command: yarn build-fixtures command: yarn build-fixtures
@ -44,6 +54,8 @@ jobs:
test: test:
<<: *defaults <<: *defaults
steps: steps:
- attach_workspace:
at: ~/project
- run: - run:
name: Test name: Test
command: yarn jest test/ command: yarn jest test/
@ -51,6 +63,8 @@ jobs:
release: release:
<<: *defaults <<: *defaults
steps: steps:
- attach_workspace:
at: ~/project
- run: - run:
name: release name: release
command: | command: |