Skip to content

Commit

Permalink
fix: migrate from /docs to gh-pages branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Bergman committed Dec 17, 2018
1 parent f27f075 commit 7d36139
Show file tree
Hide file tree
Showing 108 changed files with 96 additions and 49,247 deletions.
161 changes: 91 additions & 70 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,93 +1,109 @@
version: 2
version: 2.1

_refs:
cwd: &cwd ~/jobs
ssh-config: &ssh-config
fingerprints:
- '0d:94:44:8a:82:3d:01:b0:58:fb:97:3a:a4:cd:f4:b2'
cache-config: &cache-config
key: dependency-cache-{{ checksum "package.json" }}
restore-cache: &restore-cache
<<: *cache-config
save-cache: &save-cache
<<: *cache-config
paths:
- ~/jobs/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
install: &install
name: Install dependencies
command: .circleci/greenkeeper
build: &build
name: Building
command: yarn build
test: &test
name: Testing
command: yarn ci-test
coverage: &coverage
name: Submitting code coverage to codecov
command: |
./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash
gh-config: &gh-config
name: Configuring GitHub
command: |
git config credential.helper 'cache --timeout=120'
git config user.email "$GH_EMAIL"
git config user.name "Deployment Bot"
_defaults: &defaults
docker:
- image: node:latest
working_directory: *cwd

jobs:
base: &base
docker:
- image: node:latest
working_directory: ~/cli
steps:
- checkout
node-latest: &test
<<: *base
node-latest: &node-test
<<: *defaults
steps:
- add_ssh_keys: *ssh-config
- checkout
- restore_cache: &restore_cache
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: .circleci/greenkeeper
- run:
name: Building
command: yarn build
- run:
name: Testing
command: yarn test
- run:
name: Submitting code coverage to codecov
command: |
./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ~/cli/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
- restore_cache: *restore-cache
- run: *install
- run: *build
- run: *test
- run: *coverage
- save_cache: *save-cache
node-8:
<<: *test
<<: *node-test
docker:
- image: node:8
release:
<<: *base
<<: *defaults
steps:
- add_ssh_keys:
fingerprints:
- '0d:94:44:8a:82:3d:01:b0:58:fb:97:3a:a4:cd:f4:b2'
- add_ssh_keys: *ssh-config
- checkout
- run:
name: Set Github Info
command: |
git config credential.helper 'cache --timeout=120'
git config user.email "$GH_EMAIL"
git config user.name "Deployment Bot"
- restore_cache: &restore_cache
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: .circleci/greenkeeper
- restore_cache: *restore-cache
- run: *gh-config
- run: *install
- run: yarn global add semantic-release@15
- run: yarn global add @oclif/semantic-release@3
- run:
name: Compiling
command: yarn compile
- run: *build
- run: semantic-release -e @oclif/semantic-release
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ~/cli/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
- run: git status
- save_cache: *save-cache
merge:
<<: *base
<<: *defaults
steps:
- add_ssh_keys:
fingerprints:
- '0d:94:44:8a:82:3d:01:b0:58:fb:97:3a:a4:cd:f4:b2'
- add_ssh_keys: *ssh-config
- checkout
- restore_cache: *restore-cache
- run: *install
- run: *build
- run: *gh-config
- run:
name: Set Github Info
name: Merging
command: |
git config credential.helper 'cache --timeout=120'
git config user.email "$GH_EMAIL"
git config user.name "Deployment Bot"
- run: git fetch
- run: git checkout develop
- run: git pull origin develop
- run: git merge origin/master
- run: git push origin develop
git fetch
git checkout develop
git pull origin develop
git merge origin/master
git push origin develop
- save_cache: *save-cache
ci-docs:
<<: *defaults
steps:
- add_ssh_keys: *ssh-config
- checkout
- restore_cache: *restore-cache
- run: *install
- run: *build
- run: *gh-config
- run: yarn ci-docs
- save_cache: *save-cache

workflows:
version: 2
'sfdx-core':
sfdx-core:
jobs:
- node-latest
- node-8
Expand All @@ -102,3 +118,8 @@ workflows:
branches: { only: master }
requires:
- release
- ci-docs:
filters:
branches: { only: master }
requires:
- release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@

**/.sfdx
**/.vscode
**/docs
Loading

0 comments on commit 7d36139

Please sign in to comment.