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

Commit 4e3ce6a

Browse files
authored
Merge pull request #3 from blocknotes/circleci-project-setup
Add CircleCI setup
2 parents 4621aaf + d0bb6ee commit 4e3ce6a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.circleci/config.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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.6-stretch-node-browsers
9+
executor: ruby/default
10+
steps:
11+
- checkout
12+
- restore_cache:
13+
key: gem-cache-{{ checksum "activeadmin_selectize.gemspec" }}
14+
- run:
15+
name: Setup Bundler
16+
command: gem install bundler
17+
- run:
18+
name: Bundle Install
19+
command: bundle install --path vendor/bundle
20+
- save_cache:
21+
key: gem-cache-{{ checksum "activeadmin_selectize.gemspec" }}
22+
paths: vendor/bundle
23+
- run:
24+
name: Run Specs
25+
command: |
26+
bin/rspec \
27+
--profile 10 \
28+
--format RspecJunitFormatter \
29+
--out test_results/rspec.xml \
30+
--format progress \
31+
$(circleci tests glob "spec/**/*_spec.rb")
32+
- store_test_results:
33+
path: test_results

0 commit comments

Comments
 (0)