Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit 1e13168

Browse files
author
Przemyslaw Mroczek
authored
Merge pull request #31 from marzann/CI
Ci
2 parents 12871cc + df716c5 commit 1e13168

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/ruby:2.4-node
6+
environment:
7+
BUNDLE_PATH: vendor/bundle
8+
RAILS_ENV: test
9+
10+
steps:
11+
- checkout
12+
13+
# Which version of bundler?
14+
- run:
15+
name: Which bundler?
16+
command: bundle -v
17+
18+
# Restore bundle cache
19+
- restore_cache:
20+
keys:
21+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
22+
# fallback to using the latest cache if no exact match is found
23+
- v1-dependencies-
24+
25+
- run:
26+
name: Bundle Install
27+
command: bundle check || bundle install
28+
29+
# Store bundle cache
30+
- save_cache:
31+
paths:
32+
- ./vendor/bundle
33+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
34+
35+
# Run tests
36+
- run:
37+
name: run tests
38+
command: |
39+
mkdir /tmp/test-results
40+
41+
bundle exec rspec
42+
43+
# Save test results for timing analysis
44+
- store_test_results:
45+
path: /tmp/test-results

0 commit comments

Comments
 (0)