Skip to content

Commit

Permalink
Merge pull request #3 from EverFi/FC-1090-add-circleci-config
Browse files Browse the repository at this point in the history
FC-1090 Add CircleCI config
  • Loading branch information
vrmontes authored Nov 3, 2022
2 parents 72e580c + 79a4c7b commit d7e4883
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
references:
docker_auth: &docker_auth
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD

docker_image_ruby: &docker_image_ruby
image: cimg/ruby:3.0.3
<<: *docker_auth

docker_container_ruby: &docker_container_ruby
docker:
- *docker_image_ruby
working_directory: ~/repo

version: 2.1

jobs:
build:
<<: *docker_container_ruby

steps:
- checkout
- run:
name: Configure Bundler
command: |
export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")
gem install bundler -v $BUNDLER_VERSION
- run:
name: Install gems
command: bundle install --jobs=4 --retry=3

- run:
name: Run Ruby tests
command: bundle exec rake test

- store_test_results:
path: /tmp/test-results

- store_artifacts:
path: /tmp/test-results
destination: test-results
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
Expand Down
24 changes: 24 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
PATH
remote: .
specs:
memoist (0.16.2.everfi.1.0.0)

GEM
remote: https://rubygems.org/
specs:
benchmark-ips (2.10.0)
minitest (5.16.3)
rake (13.0.6)

PLATFORMS
arm64-darwin-21

DEPENDENCIES
benchmark-ips
bundler
memoist!
minitest (~> 5.10)
rake

BUNDLED WITH
2.3.22

0 comments on commit d7e4883

Please sign in to comment.