Skip to content

Commit

Permalink
ci: setup circleci (all-contributors#115)
Browse files Browse the repository at this point in the history
* ci: setup circleci

* docs: update readme

* no need for tests script

* join slack
  • Loading branch information
jakebolam authored Jan 7, 2019
1 parent 3dab01e commit 65eb804
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 583 deletions.
57 changes: 57 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
version: 2.1

docker_defaults: &docker_defaults
docker:
- image: circleci/node:8.14.0

commands:
prep_env:
description: Prepares environment with cache
steps:
- checkout:
path: ~/repo
- restore_cache:
name: Restore node_modules cache
key: all-contributors-{{ checksum "yarn.lock" }}-{{ .Branch }}
save_env_cache:
description: Saves environment cache
steps:
- save_cache:
name: Save node_modules cache
key: all-contributors-{{ checksum "yarn.lock" }}-{{ .Branch }}
paths:
- node_modules/

jobs:
node_modules:
<<: *docker_defaults
working_directory: ~/repo
steps:
- prep_env
- run: cat package.json | jq 'del(.scripts.postinstall)' > package.json.tmp && mv package.json.tmp package.json
- run: yarn install --frozen-lockfile
- save_env_cache
deploy:
<<: *docker_defaults
working_directory: ~/repo
steps:
- prep_env
- run: yarn run semantic-release
workflows:
version: 2
test_and_deploy:
jobs:
- node_modules
- deploy:
requires:
- node_modules
filters:
branches:
only:
- master

experimental:
notify:
branches:
only:
- master
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ desktop.ini
# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# Optional eslint cache
.eslintcache

Expand All @@ -24,4 +21,4 @@ logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn-error.log*
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.14.0
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions .yvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.9.2
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ We are also [looking for maintainers](https://github.com/all-contributors/all-co

[MIT](LICENSE)

[chat-badge]: https://img.shields.io/badge/chat-on%20gitter-46BC99.svg?style=flat-square
[chat]: https://gitter.im/all-contributors/all-contributors?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
[build-badge]: https://img.shields.io/travis/all-contributors/all-contributors.svg?style=flat-square
[build]: https://travis-ci.org/all-contributors/all-contributors
[chat-badge]: https://img.shields.io/badge/slack-join-ff69b4.svg?style=flat-square
[chat]: https://join.slack.com/t/all-contributors/shared_invite/enQtNTE3ODMyMTA4NTk0LTUwZDMxZGZkMmViMzYzYzk2YTM2NjRkZGM5Yzc0ZTc5NmYzNWY3Y2Q0ZTY3ZmFhZDgyY2E3ZmIzNWQwMTUxZmE
[build-badge]: https://img.shields.io/circleci/all-contributors/all-contributors/master.svg?style=flat-square
[build]: https://circleci.com/gh/all-contributors/all-contributors
[version-badge]: https://img.shields.io/npm/v/all-contributors.svg?style=flat-square
[package]: https://www.npmjs.com/package/all-contributors
[license-badge]: https://img.shields.io/npm/l/all-contributors.svg?style=flat-square
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)",
"license": "MIT",
"scripts": {
"test": "echo \"no tests exist yet... Any ideas?\"",
"postinstall": "node index.js",
"add-contributor": "all-contributors add",
"generate-contributors": "all-contributors generate",
Expand Down
Loading

0 comments on commit 65eb804

Please sign in to comment.