Skip to content

Commit

Permalink
feat: switch from Travis to CircleCI (#18)
Browse files Browse the repository at this point in the history
* feat: switch from Travis to CircleCI

Co-authored-by: Grex <[email protected]>
Co-authored-by: Noa Elad <[email protected]>

* chore: remove Travis config

* chore: explicitly use gusto 0.0.9 orb
  • Loading branch information
grxy authored Sep 3, 2019
1 parent e8f662e commit 3af14b3
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 36 deletions.
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/[email protected]

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
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

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

0 comments on commit 3af14b3

Please sign in to comment.