
* ci tests * update * update * update * update * update * update * update * update * update * update * update * update * update * update
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
working_directory: ~/ionic-native/
|
|
docker:
|
|
- image: node:7
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: ionic-site-{{ .Branch }}
|
|
- run:
|
|
name: Prepare ionic-site repo
|
|
command: |
|
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
|
./scripts/docs/prepare.sh
|
|
fi
|
|
- save_cache:
|
|
key: ionic-site-{{ .Branch }}
|
|
paths:
|
|
- ~/ionic-site/
|
|
- restore_cache:
|
|
key: node_modules_{{ checksum "package.json" }}
|
|
- run:
|
|
name: Install node modules
|
|
command: npm i
|
|
- save_cache:
|
|
key: node_modules_{{ checksum "package.json" }}
|
|
paths:
|
|
- ~/ionic-native/node_modules/
|
|
- run:
|
|
name: Run tslint
|
|
command: npm run lint
|
|
- run:
|
|
name: Build changed plugins
|
|
command: node scripts/ci-tests.js
|
|
- add_ssh_keys
|
|
- deploy:
|
|
name: Update docs
|
|
command: |
|
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
|
./scripts/docs/update_docs.sh
|
|
else
|
|
echo "We are on ${CIRCLE_BRANCH} branch, not going to update docs."
|
|
fi
|