Skip to content

Commit 3af14b3

Browse files
authored
feat: switch from Travis to CircleCI (#18)
* feat: switch from Travis to CircleCI Co-authored-by: Grex <grex@gusto.com> Co-authored-by: Noa Elad <noa.elad@gusto.com> * chore: remove Travis config * chore: explicitly use gusto 0.0.9 orb
1 parent e8f662e commit 3af14b3

File tree

4 files changed

+42
-36
lines changed

4 files changed

+42
-36
lines changed

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: 2.1
2+
3+
orbs:
4+
gusto: gusto/gusto@0.0.9
5+
6+
jobs:
7+
ruby-test:
8+
executor: gusto/ruby-2-3
9+
steps:
10+
- gusto/bundle-install
11+
- run: bundle exec rake
12+
integration-tests:
13+
executor: gusto/ruby-2-3
14+
steps:
15+
- gusto/bundle-install
16+
- gusto/yarn-install
17+
- run: yarn test
18+
- run: yarn lint
19+
release:
20+
executor: gusto/ruby-2-3
21+
steps:
22+
- run: npx semantic-release
23+
24+
workflows:
25+
version: 2
26+
main:
27+
jobs:
28+
- gusto/ruby-lint
29+
- ruby-test
30+
- integration-tests
31+
- release:
32+
filters:
33+
branches:
34+
only: master
35+
requires:
36+
- gusto/ruby-lint
37+
- ruby-test
38+
- integration-tests

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ yarn-error.log*
44

55
# Dependency directories
66
node_modules/
7+
8+
# built CircleCI configs
9+
.circleci/processed-config.yml

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"main": "index.js",
55
"license": "MIT",
66
"scripts": {
7+
"circle:execute": "circleci config process ./.circleci/config.yml > .circleci/processed-config.yml && circleci local execute -c .circleci/processed-config.yml --job",
78
"start-gateway": "nodemon --delay 2 ./example/gateway.js",
89
"start-service-accounts": "nodemon --exec \"bundle exec ruby\" ./example/accounts.rb",
910
"start-service-reviews": "nodemon --exec \"bundle exec ruby\" ./example/reviews.rb",

0 commit comments

Comments
 (0)