-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e23142
commit e7d5ecc
Showing
4 changed files
with
53 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
version: 2.1 | ||
jobs: | ||
build: | ||
parallelism: 4 | ||
docker: # run the steps with Docker | ||
- image: circleci/ruby:2.3 | ||
environment: # environment variables for primary container | ||
BUNDLE_JOBS: 3 | ||
BUNDLE_RETRY: 3 | ||
BUNDLE_PATH: vendor/bundle | ||
RAILS_ENV: test | ||
steps: # a collection of executable commands | ||
- checkout # special step to check out source code to working directory | ||
|
||
# Which version of bundler? | ||
- run: | ||
name: Which bundler? | ||
command: bundle -v | ||
|
||
# Restore bundle cache | ||
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/ | ||
- restore_cache: | ||
keys: | ||
- rocket-library-{{ checksum "Gemfile.lock" }} | ||
- rocket-library- | ||
|
||
- run: # Install Ruby dependencies | ||
name: Bundle Install | ||
command: bundle check --path vendor/bundle || bundle install --deployment | ||
|
||
# Store bundle cache for Ruby dependencies | ||
- save_cache: | ||
key: rrocket-library-{{ checksum "Gemfile.lock" }} | ||
paths: | ||
- vendor/bundle | ||
|
||
- run: | ||
name: Run rspec in parallel | ||
command: | | ||
bundle exec rspec --profile 10 \ | ||
--format JUnit \ | ||
--out $CIRCLE_TEST_REPORTS/rspec.xml \ | ||
--format progress \ | ||
$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings) | ||
# Save test results for timing analysis | ||
- store_test_results: # Upload test results for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/ | ||
path: $CIRCLE_TEST_REPORTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,7 @@ | |
.byebug_history | ||
|
||
# File uploads | ||
public/uploads/* | ||
public/uploads/* | ||
|
||
# Ignore vendor | ||
vendor/* |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.