-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 5d43ab7
Showing
38 changed files
with
2,227 additions
and
0 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,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 |
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,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 |
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,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 |
Oops, something went wrong.