mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
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
This commit is contained in:

committed by
Brandy Carney

parent
74e032a8cc
commit
b075ae0e71
43
circle.yml
43
circle.yml
@ -3,45 +3,30 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
working_directory: ~/ionic/
|
working_directory: ~/ionic/
|
||||||
docker:
|
docker:
|
||||||
- image: node:7
|
- image: node:8
|
||||||
branches:
|
branches:
|
||||||
ignore:
|
# ignore:
|
||||||
- core
|
# - core
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
|
||||||
key: ionic-site
|
|
||||||
- run:
|
|
||||||
name: Prepare ionic-site repo
|
|
||||||
command: ./packages/ionic-angular/scripts/docs/prepare.sh
|
|
||||||
- save_cache:
|
|
||||||
key: ionic-site
|
|
||||||
paths:
|
|
||||||
- ~/ionic-site/
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: node_modules_{{ checksum "package.json" }}
|
key: node_modules_{{ checksum "package.json" }}
|
||||||
- run:
|
- run:
|
||||||
name: Install node modules
|
name: Install monorepo node modules
|
||||||
command: npm i
|
command: npm i
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: node_modules_{{ checksum "package.json" }}
|
key: node_modules_{{ checksum "package.json" }}
|
||||||
paths:
|
paths:
|
||||||
- ~/ionic/node_modules/
|
- ~/ionic/node_modules/
|
||||||
|
- restore_cache:
|
||||||
|
key: node_modules_{{ checksum "packages/core/package.json" }}
|
||||||
- run:
|
- run:
|
||||||
name: Run tslint
|
name: Install core node modules
|
||||||
command: ./node_modules/.bin/gulp lint.ts
|
command: npm --prefix packages/core/ i
|
||||||
|
- save_cache:
|
||||||
|
key: node_modules_{{ checksum "packages/core/package.json" }}
|
||||||
|
paths:
|
||||||
|
- ~/ionic/packages/core/node_modules/
|
||||||
- run:
|
- run:
|
||||||
name: Build Demos
|
name: Validate Core
|
||||||
command: |
|
command: npm --prefix packages/core/ run validate
|
||||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
|
||||||
./node_modules/.bin/gulp demos.prod --production=true --batch=$CIRCLE_NODE_INDEX --batches=$CIRCLE_NODE_TOTAL
|
|
||||||
fi
|
|
||||||
- add_ssh_keys
|
|
||||||
- deploy:
|
|
||||||
name: Update docs
|
|
||||||
command: |
|
|
||||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
|
||||||
./packages/ionic-angular/scripts/ci/deploy.sh
|
|
||||||
else
|
|
||||||
echo "We are on ${CIRCLE_BRANCH} branch, not going to update docs."
|
|
||||||
fi
|
|
||||||
|
Reference in New Issue
Block a user