chore(ci): use /tmp/workspace for working directory

This commit is contained in:
Daniel Imhoff
2018-09-26 13:19:40 -05:00
parent a3c85ae301
commit 171ef04773
2 changed files with 33 additions and 32 deletions

33
.circleci/config.yml Normal file
View File

@@ -0,0 +1,33 @@
version: 2
jobs:
build:
working_directory: /tmp/workspace
docker:
- image: circleci/node:latest-browsers
branches:
# ignore:
# - core
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install monorepo node modules
command: npm i
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
- restore_cache:
key: dependency-cache-{{ checksum "core/package.json" }}
- run:
name: Install core node modules
command: npm --prefix core/ i
- save_cache:
key: dependency-cache-{{ checksum "core/package.json" }}
paths:
- core/node_modules
- run:
name: Validate Core
command: npm --prefix core/ run validate.ci

View File

@@ -1,32 +0,0 @@
version: 2
jobs:
build:
working_directory: ~/ionic/
docker:
- image: circleci/node:latest-browsers
branches:
# ignore:
# - core
steps:
- checkout
- restore_cache:
key: node_modules_{{ checksum "package.json" }}
- run:
name: Install monorepo node modules
command: npm i
- save_cache:
key: node_modules_{{ checksum "package.json" }}
paths:
- ~/ionic/node_modules/
- restore_cache:
key: node_modules_{{ checksum "core/package.json" }}
- run:
name: Install core node modules
command: npm --prefix core/ i
- save_cache:
key: node_modules_{{ checksum "core/package.json" }}
paths:
- ~/ionic/core/node_modules/
- run:
name: Validate Core
command: npm --prefix core/ run validate.ci