awesome-cordova-plugins/circle.yml

36 lines
905 B
YAML
Raw Normal View History

2017-03-29 07:31:39 +08:00
version: 2
jobs:
build:
working_directory: ~/ionic-native/
docker:
- image: node:7
branches:
- only:
- cci2
steps:
2017-03-29 07:46:17 +08:00
- checkout
2017-03-29 07:45:44 +08:00
- restore_cache:
key: ionic-site
2017-03-29 07:31:39 +08:00
- run:
2017-03-29 07:59:33 +08:00
name: Prepare ionic-site repo
command: ./scripts/docs/prepare.sh
2017-03-29 07:31:39 +08:00
- save_cache:
2017-03-29 07:59:33 +08:00
key: ionic-site
paths:
- ~/ionic-site/
- restore_cache:
key: {{ checksum "package.json" }}-node-modules
2017-03-29 07:31:39 +08:00
- run:
2017-03-29 07:41:50 +08:00
name: Install node modules
command: npm i
2017-03-29 07:59:33 +08:00
- save_cache:
key: {{ checksum "package.json" }}-node-modules # used cached node_modules if package.json didn't change
2017-03-29 07:59:33 +08:00
paths:
2017-03-29 08:02:33 +08:00
- ~/ionic-native/node_modules/
2017-03-29 07:59:33 +08:00
- run:
name: Run tslint
command: npm run lint
2017-03-29 07:31:39 +08:00
- run:
name: Update docs
command: ./scripts/docs/update_docs.sh