Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: switch from Travis to CircleCI #18

Merged
merged 3 commits into from
Sep 3, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: 2.1

orbs:
gusto: gusto/gusto@volatile
grxy marked this conversation as resolved.
Show resolved Hide resolved

jobs:
ruby-test:
executor: gusto/ruby-2-3
steps:
- gusto/bundle-install
- run: bundle exec rake
integration-tests:
executor: gusto/ruby-2-3
steps:
- gusto/bundle-install
- gusto/yarn-install
- run: yarn test
- run: yarn lint
release:
executor: gusto/ruby-2-3
steps:
- run: npx semantic-release

workflows:
version: 2
main:
jobs:
- gusto/ruby-lint
- ruby-test
- integration-tests
- release:
filters:
branches:
only: master
requires:
- gusto/ruby-lint
- ruby-test
- integration-tests
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ yarn-error.log*

# Dependency directories
node_modules/

# built CircleCI configs
.circleci/processed-config.yml
11 changes: 1 addition & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
script:
- bundle exec rake
- bundle exec rake rubocop
- name: "Integration Tests"
- name: 'Integration Tests'
language: node_js
node_js: node
cache: yarn
Expand All @@ -25,12 +25,3 @@ jobs:
script:
- yarn test
- yarn lint
- stage: 'Release'
if: type = push AND branch = master
language: node_js
node_js: lts/*
script: skip
deploy:
provider: script
skip_cleanup: true
script: npx semantic-release
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"circle:execute": "circleci config process ./.circleci/config.yml > .circleci/processed-config.yml && circleci local execute -c .circleci/processed-config.yml --job",
"start-gateway": "nodemon --delay 2 ./example/gateway.js",
"start-service-accounts": "nodemon --exec \"bundle exec ruby\" ./example/accounts.rb",
"start-service-reviews": "nodemon --exec \"bundle exec ruby\" ./example/reviews.rb",
Expand Down