Skip to content

Commit

Permalink
Configure CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
ksylvest committed Jun 25, 2020
1 parent f4762c0 commit 5ab953a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,29 @@
version: 2.1
orbs:
coveralls: coveralls/coveralls@1.0.6
ruby: circleci/ruby@1.0.2

jobs:
build:
docker:
- image: circleci/ruby:2.7.1
- image: circleci/postgres:12.3-ram
environment:
POSTGRES_USER: circleci
POSTGRES_DB: picturesque_test
POSTGRES_HOST_AUTH_METHOD: trust
environment:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 4
BUNDLE_PATH: vendor/bundle
BUNDLER_VERSION: 2.1.4
RAILS_ENV: test
RACK_ENV: test
PGHOST: localhost
steps:
- checkout
- run: gem install bundler --version "$BUNDLER_VERSION"
- ruby/install-deps
- run: dockerize -wait tcp://localhost:5432 -timeout 2m # Postgres
- ruby/rspec-test
- coveralls/upload
20 changes: 3 additions & 17 deletions Gemfile.lock
Expand Up @@ -76,15 +76,10 @@ GEM
docile (1.3.2)
erubi (1.9.0)
fabrication (2.21.1)
ffi (1.13.1)
globalid (0.4.2)
activesupport (>= 4.2.0)
i18n (1.8.3)
concurrent-ruby (~> 1.0)
jquery-rails (4.4.0)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.3.0)
loofah (2.6.0)
crass (~> 1.0.2)
Expand Down Expand Up @@ -150,16 +145,8 @@ GEM
rspec-mocks (~> 3.9)
rspec-support (~> 3.9)
rspec-support (3.9.3)
sass-rails (6.0.0)
sassc-rails (~> 2.1, >= 2.1.1)
sassc (2.4.0)
ffi (~> 1.9)
sassc-rails (2.1.2)
railties (>= 4.0.0)
sassc (>= 2.0)
sprockets (> 3.0)
sprockets-rails
tilt
rspec_junit_formatter (0.4.1)
rspec-core (>= 2, < 4, != 2.12.0)
simplecov (0.16.1)
docile (~> 1.1)
json (>= 1.8, < 3)
Expand Down Expand Up @@ -201,11 +188,10 @@ PLATFORMS
DEPENDENCIES
coveralls
fabrication
jquery-rails
pg
picturesque!
rspec-rails
sass-rails
rspec_junit_formatter
slim-rails

BUNDLED WITH
Expand Down
3 changes: 1 addition & 2 deletions picturesque.gemspec
Expand Up @@ -20,8 +20,7 @@ Gem::Specification.new do |s|
s.add_dependency 'mini_magick'

s.add_development_dependency 'fabrication'
s.add_development_dependency 'jquery-rails'
s.add_development_dependency 'rspec_junit_formatter'
s.add_development_dependency 'rspec-rails'
s.add_development_dependency 'sass-rails'
s.add_development_dependency 'slim-rails'
end

0 comments on commit 5ab953a

Please sign in to comment.