You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/ruby_examples.md
+134
Original file line number
Diff line number
Diff line change
@@ -112,3 +112,137 @@ after_script:
112
112
- if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then ./cc-test-reporter upload-coverage; fi # Upload coverage/codeclimate.json
113
113
```
114
114
115
+
## Example 3
116
+
- Language: Ruby
117
+
- CI: CircleCI
118
+
- Coverage Tool: RSpec
119
+
- File: .circleci/config.yml
120
+
- Single/Parallel: Parallel
121
+
- OSS Repo: [This repo](https://github.com/FlorinPopaCodes/bike_index/blob/master/.circleci/config.yml), based on [this conversation](https://github.com/codeclimate/test-reporter/issues/386#issuecomment-473684517)
122
+
123
+
```
124
+
version: 2
125
+
jobs:
126
+
build:
127
+
working_directory: ~/bikeindex/bike_index
128
+
parallelism: 4
129
+
shell: /bin/bash --login
130
+
environment:
131
+
RAILS_ENV: test
132
+
RACK_ENV: test
133
+
COVERAGE: true
134
+
TZ: /usr/share/zoneinfo/America/Chicago
135
+
docker:
136
+
- image: circleci/ruby:2.5.1-stretch-node
137
+
environment:
138
+
PGHOST: 127.0.0.1
139
+
PGUSER: root
140
+
- image: circleci/postgres:10.4-alpine-postgis
141
+
environment:
142
+
POSTGRES_USER: root
143
+
POSTGRES_DB: bikeindex_test
144
+
- image: redis:4.0.9
145
+
steps:
146
+
- checkout
147
+
- restore_cache:
148
+
keys:
149
+
# This branch if available
150
+
- v2-dep-{{ .Branch }}-
151
+
# Default branch if not
152
+
- v2-dep-master-
153
+
# Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly
0 commit comments