Skip to content

Commit 3da7d59

Browse files
author
Steven Allen
committed
Initial pipeline setup
1 parent e590c5c commit 3da7d59

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.circleci/config.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
version: 2.1
2+
orbs:
3+
ruby: circleci/ruby@0.1.2
4+
5+
jobs:
6+
build:
7+
docker:
8+
- image: circleci/ruby:2.6.3
9+
steps:
10+
- checkout
11+
- ruby/bundle-install
12+
13+
14+
15+
test: # our next job, called "test"
16+
# we run "parallel job containers" to enable speeding up our tests;
17+
# this splits our tests across multiple containers.
18+
parallelism: 3
19+
# here we set TWO docker images.
20+
docker:
21+
- image: circleci/ruby:2.6.3
22+
23+
environment:
24+
CC_TEST_REPORTER_ID: $CC_TEST_REPORTER_ID
25+
steps:
26+
- checkout
27+
- ruby/install-deps
28+
29+
- run:
30+
name: Setup dummy app
31+
command: cd spec/dummy && bin/setup
32+
- run:
33+
name: Setup Code Climate test-reporter
34+
command: |
35+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
36+
chmod +x ./cc-test-reporter
37+
- run:
38+
name: Test report
39+
command: cc-test-reporter before-build
40+
- run:
41+
name: Run tests
42+
command: bundle exec rspec
43+
- run:
44+
name: Test report
45+
command: |
46+
cc-test-reporter after-build

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ spec/dummy/db/*.sqlite3
55
spec/dummy/db/*.sqlite3-journal
66
spec/dummy/log/*.log
77
spec/dummy/tmp/
8-
.byebug_history
8+
.byebug_history
9+
coverage/*

0 commit comments

Comments
 (0)