Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Feb 18, 2022
0 parents commit 5d43ab7
Show file tree
Hide file tree
Showing 38 changed files with 2,227 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---

version: 2

jobs:
build:
docker:
- image: decidim/decidim@sha256:348fb1faa49cfe76ba7cbeafc67ca09002cf95f0ffa7a76eefa9d5b3774e0ee9
environment:
DATABASE_USERNAME: postgres

- image: postgres
environment:
POSTGRES_USER: postgres

working_directory: /app

steps:
- checkout

- restore_cache:
keys:
- bundler-dependencies-{{ checksum "Gemfile.lock" }}

- run:
name: Install dependencies
command: bundle install

- save_cache:
key: bundler-dependencies-{{ checksum "Gemfile.lock" }}
paths:
- /usr/local/bundle

- run:
name: Wait for db
command: dockerize -wait tcp://localhost:5432 -timeout 1m

- run:
name: Generate test app
command: bundle exec rake decidim:generate_external_test_app

- run:
name: Run RSpec tests
command: bundle exec rspec

- store_artifacts:
path: /app/spec/decidim_dummy_app/tmp/screenshots
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/.bundle/
/.yardoc
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/

# rspec failure tracking
.rspec-failures

# default test application
spec/decidim_dummy_app

# default development application
development_app
28 changes: 28 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# frozen_string_literal: true

source 'https://rubygems.org'

ruby RUBY_VERSION

DECIDIM_VERSION = 'v0.24.2'

gem 'decidim', git: 'https://github.com/decidim/decidim', tag: DECIDIM_VERSION
gem 'decidim-newsfeed', path: '.'

gem 'bootsnap', '~> 1.4'
gem 'puma', '>= 4.3'

group :development, :test do
gem 'byebug', '~> 11.0', platform: :mri

gem 'decidim-dev', git: 'https://github.com/decidim/decidim', tag: DECIDIM_VERSION
end

group :development do
gem 'faker', '~> 2.14'
gem 'letter_opener_web', '~> 1.3'
gem 'listen', '~> 3.1'
gem 'spring', '~> 2.0'
gem 'spring-watcher-listen', '~> 2.0'
gem 'web-console', '~> 3.0'
end
Loading

0 comments on commit 5d43ab7

Please sign in to comment.