awesome-cordova-plugins/ignore-circle.yml

52 lines
1.4 KiB
YAML
Raw Normal View History

2017-03-29 07:31:39 +08:00
version: 2
jobs:
build:
working_directory: ~/ionic-native/
docker:
2020-11-05 20:27:38 +08:00
- image: node:14
2017-03-29 07:31:39 +08:00
steps:
2017-03-29 07:46:17 +08:00
- checkout
2017-03-29 07:45:44 +08:00
- restore_cache:
2021-05-28 23:18:18 +08:00
key: ionic-site-{{ checksum "package.json" }}
2017-03-29 07:31:39 +08:00
- run:
2021-05-28 23:18:18 +08:00
name: Prepare ionic-site repo
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
./scripts/docs/prepare.sh
fi
2017-03-29 07:31:39 +08:00
- save_cache:
2021-05-28 23:18:18 +08:00
key: ionic-site-{{ checksum "package.json" }}
paths:
- ~/ionic-site/
2017-03-29 07:59:33 +08:00
- restore_cache:
2021-05-28 23:18:18 +08:00
key: node_modules_{{ checksum "package.json" }}
2017-03-29 07:31:39 +08:00
- run:
2021-05-28 23:18:18 +08:00
name: Install node modules
command: npm ci
2017-03-29 07:59:33 +08:00
- save_cache:
2021-05-28 23:18:18 +08:00
key: node_modules_{{ checksum "package.json" }}
paths:
- ~/ionic-native/node_modules/
2017-03-29 07:59:33 +08:00
- run:
name: Run tslint
command: npm run lint
- run: bash ./scripts/git/config.sh
- run:
2017-06-12 05:26:01 +08:00
name: Build Ionic Native
2017-12-28 20:28:44 +08:00
command: npm run build
- run:
name: Generate README files to ensure docs are valid
command: npm run readmes
2017-05-14 15:25:33 +08:00
- run:
name: Run tests
command: npm test
2017-03-29 08:30:41 +08:00
- add_ssh_keys
2017-03-29 08:13:44 +08:00
- deploy:
2017-03-29 07:31:39 +08:00
name: Update docs
2017-03-29 08:13:44 +08:00
command: |
2017-03-29 08:32:14 +08:00
if [ "${CIRCLE_BRANCH}" == "master" ]; then
2017-03-29 08:13:44 +08:00
./scripts/docs/update_docs.sh
else
2017-03-29 08:22:34 +08:00
echo "We are on ${CIRCLE_BRANCH} branch, not going to update docs."
2017-03-29 08:13:44 +08:00
fi