This repository has been archived by the owner on Nov 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Charlike Mike Reagent <[email protected]>
- Loading branch information
Charlike Mike Reagent
committed
Nov 1, 2018
1 parent
84f7cce
commit acdd6ad
Showing
28 changed files
with
3,111 additions
and
2,560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,149 @@ | ||
version: 2 | ||
|
||
defaults: &defaults | ||
working_directory: ~/execa-pro | ||
workdir: &workdir | ||
working_directory: ~/execa | ||
|
||
# node8osx: &node8osx | ||
# <<: *workdir | ||
# macos: | ||
# xcode: "9.2" | ||
|
||
# node10osx: &node10osx | ||
# <<: *workdir | ||
# macos: | ||
# xcode: "9" | ||
|
||
node8linux: &node8linux | ||
<<: *workdir | ||
docker: | ||
- image: circleci/node:8 | ||
|
||
node10linux: &node10linux | ||
<<: *workdir | ||
docker: | ||
- image: circleci/node:10 | ||
|
||
restore_modules_cache: &restore_modules_cache | ||
restore_cache: | ||
keys: | ||
- execa-pro-{{ checksum "yarn.lock" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- execa-pro- | ||
- execa-{{ checksum "yarn.lock" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- execa- | ||
|
||
# jobinstall: &jobinstall | ||
# steps: | ||
# - checkout | ||
# # - *restore_modules_cache | ||
# - run: | ||
# name: Installing PNPM package manager | ||
# command: sudo npm i -g pnpm | ||
# - run: | ||
# name: Installing project dependencies | ||
# command: pnpm run inst | ||
# - save_cache: | ||
# key: execa-{{ checksum "yarn.lock" }} | ||
# paths: node_modules | ||
# - run: | ||
# name: Remove node_modules to cleanup workspace | ||
# command: rm -rf node_modules | ||
|
||
jobtest: &jobtest | ||
steps: | ||
- checkout | ||
- *restore_modules_cache | ||
- run: | ||
name: Installing project dependencies | ||
command: yarn install --prefer-offline || yarn install | ||
- run: | ||
name: Testing your project | ||
command: yarn test | ||
- save_cache: | ||
key: execa-{{ checksum "yarn.lock" }} | ||
paths: node_modules | ||
- run: | ||
name: Sending test coverage to CodeCov | ||
command: bash <(curl -s https://codecov.io/bash) | ||
|
||
jobs: | ||
install: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- *restore_modules_cache | ||
- run: | ||
name: Installing Dependencies | ||
command: yarn install | ||
- save_cache: | ||
key: execa-pro-{{ checksum "yarn.lock" }} | ||
paths: node_modules | ||
- run: | ||
name: Remove node_modules to cleanup workspace | ||
command: rm -rf node_modules | ||
# install-node8linux: | ||
# <<: *node8linux | ||
# <<: *jobinstall | ||
|
||
test: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- *restore_modules_cache | ||
- run: | ||
name: Running tests and checks | ||
command: yarn test | ||
- run: | ||
name: Sending test coverage to CodeCov | ||
command: bash <(curl -s https://codecov.io/bash) | ||
test-node8linux: | ||
<<: *node8linux | ||
<<: *jobtest | ||
|
||
build: | ||
<<: *defaults | ||
# install-node10linux: | ||
# <<: *node10linux | ||
# <<: *jobinstall | ||
|
||
test-node10linux: | ||
<<: *node10linux | ||
<<: *jobtest | ||
|
||
# install-node8osx: | ||
# <<: *node8osx | ||
# <<: *jobinstall | ||
|
||
# test-node8osx: | ||
# <<: *node8osx | ||
# <<: *jobtest | ||
|
||
# install-node10osx: | ||
# <<: *node10osx | ||
# <<: *jobinstall | ||
|
||
# test-node10osx: | ||
# <<: *node10osx | ||
# <<: *jobtest | ||
|
||
release: | ||
<<: *node10linux | ||
steps: | ||
- checkout | ||
- *restore_modules_cache | ||
- run: | ||
name: Creating distributable files | ||
command: echo ok | ||
- store_artifacts: | ||
path: dist | ||
destination: execa-pro | ||
|
||
publish: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- *restore_modules_cache | ||
name: Bundling your awesome project | ||
command: yarn build || echo "No build step." | ||
- run: | ||
name: Trying to deploy | ||
command: yarn hela release | ||
name: Releasing and publishing | ||
command: yarn new-release | ||
|
||
workflows: | ||
version: 2 | ||
automated: | ||
jobs: | ||
- install | ||
- test: | ||
requires: | ||
- install | ||
- build: | ||
requires: | ||
- test | ||
filters: | ||
branches: | ||
only: master | ||
- publish: | ||
# Linux | ||
- test-node8linux | ||
- test-node10linux | ||
|
||
# - install-node8linux | ||
# - test-node8linux: | ||
# requires: | ||
# - install-node8linux | ||
# - install-node10linux | ||
# - test-node10linux: | ||
# requires: | ||
# - install-node10linux | ||
# OSX | ||
# - install-node8osx | ||
# - test-node8osx: | ||
# requires: | ||
# - install-node8osx | ||
# - install-node10osx | ||
# - test-node10osx: | ||
# requires: | ||
# - install-node10osx | ||
|
||
# Release and NPM publish | ||
# Executed only on master | ||
- release: | ||
requires: | ||
- build | ||
# - test-node8osx | ||
# - test-node10osx | ||
- test-node8linux | ||
- test-node10linux | ||
filters: | ||
branches: | ||
only: master | ||
context: org-global | ||
context: org-secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# http://editorconfig.org/ | ||
root = true | ||
|
||
[*] | ||
[*.{js,mjs,jsx,ts,tsx}] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.