Files
ionic-framework/circle.yml
Perry Govier b075ae0e71 chore(CI): add validation with Circle CI (#14129)
* giving new CI validation script a test run

* tidy up CI script in prep for PR

* seeing if validate runs fine with a `npm ci` install

* using newer/faster node

* does this version have new NPM?

* does node 9 have npm 5.7?

* seeing how forcing 5.7 compares on speed

* trying node 8.9 again

* sticking with 8.9, but ditching `npm ci` for now

* trying just 8 so I can see if it gets LTS updates

* benign commit to trigger a build ahead of PR
2018-03-09 12:28:42 -05:00

33 lines
908 B
YAML

version: 2
jobs:
build:
working_directory: ~/ionic/
docker:
- image: node:8
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 "packages/core/package.json" }}
- run:
name: Install core node modules
command: npm --prefix packages/core/ i
- save_cache:
key: node_modules_{{ checksum "packages/core/package.json" }}
paths:
- ~/ionic/packages/core/node_modules/
- run:
name: Validate Core
command: npm --prefix packages/core/ run validate