Skip to content

Commit 33a2cdf

Browse files
committed
Squash repo
0 parents  commit 33a2cdf

File tree

104 files changed

+2429
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+2429
-0
lines changed

.circleci/config.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/demo
5+
docker:
6+
- image: circleci/ruby:2.6.1-node
7+
environment:
8+
PGHOST: localhost
9+
PGUSER: demo
10+
RAILS_ENV: test
11+
SELENIUM_DRIVER_URL: http://localhost:4444/wd/hub
12+
- image: circleci/postgres:9.6.3-alpine
13+
environment:
14+
POSTGRES_USER: demo
15+
POSTGRES_DB: demo_test
16+
POSTGRES_PASSWORD: ""
17+
- image: selenium/standalone-chrome:3.4.0
18+
steps:
19+
- checkout
20+
21+
# Restore Cached Dependencies
22+
- type: cache-restore
23+
name: Restore bundle cache
24+
key: demo-{{ checksum "Gemfile.lock" }}
25+
26+
# Bundle install dependencies
27+
- run: bundle install --path vendor/bundle
28+
29+
- run: npm install
30+
31+
# Cache Dependencies
32+
- type: cache-save
33+
name: Store bundle cache
34+
key: demo-{{ checksum "Gemfile.lock" }}
35+
paths:
36+
- vendor/bundle
37+
38+
# Wait for DB
39+
- run: dockerize -wait tcp://localhost:5432 -timeout 1m
40+
41+
# Setup the environment
42+
# - run: cp .sample.env .env
43+
44+
# Setup the database
45+
- run: bundle exec rake db:setup
46+
47+
# Database setup
48+
- run: bundle exec rake db:create
49+
- run: bundle exec rake db:schema:load
50+
51+
# Run rspec in parallel
52+
- type: shell
53+
command: |
54+
bundle exec rspec --profile 10 \
55+
--format RspecJunitFormatter \
56+
--out /tmp/test-results/rspec.xml \
57+
--format progress
58+
59+
# Save artifacts
60+
- type: store_test_results
61+
path: /tmp/test-results

.gitignore

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
.DS_Store
2+
tmp
3+
*.rbc
4+
capybara-*.html
5+
.rspec
6+
/db/*.sqlite3
7+
/db/*.sqlite3-journal
8+
/public/system
9+
/coverage/
10+
/spec/tmp
11+
*.orig
12+
rerun.txt
13+
pickle-email-*.html
14+
15+
# Ignore all logfiles and tempfiles.
16+
log
17+
/log/*
18+
/tmp/*
19+
!/log/.keep
20+
!/tmp/.keep
21+
22+
# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
23+
config/initializers/secret_token.rb
24+
config/master.key
25+
26+
# Only include if you have production secrets in this file, which is no longer a Rails default
27+
# config/secrets.yml
28+
29+
# dotenv
30+
# TODO Comment out this rule if environment variables can be committed
31+
.env
32+
33+
## Environment normalization:
34+
/.bundle
35+
/vendor/bundle
36+
37+
# these should all be checked in to normalize the environment:
38+
# Gemfile.lock, .ruby-version, .ruby-gemset
39+
40+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
41+
.rvmrc
42+
43+
# if using bower-rails ignore default bower_components path bower.json files
44+
/vendor/assets/bower_components
45+
*.bowerrc
46+
bower.json
47+
48+
# Ignore pow environment settings
49+
.powenv
50+
51+
# Ignore Byebug command history file.
52+
.byebug_history
53+
54+
# Ignore node_modules
55+
node_modules/
56+
57+
# Ignore precompiled javascript packs
58+
/public/packs
59+
/public/packs-test
60+
/public/assets
61+
62+
# Ignore yarn files
63+
/yarn-error.log
64+
yarn-debug.log*
65+
.yarn-integrity
66+
67+
# Ignore uploaded files in development
68+
/storage/*
69+
!/storage/.keep

Gemfile

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
source "https://rubygems.org"
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby "2.6.1"
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem "rails", github: 'rails/rails'
8+
# Use postgresql as the database for Active Record
9+
gem "pg", ">= 0.18", "< 2.0"
10+
# Use Puma as the app server
11+
gem "puma", "~> 3.11"
12+
# Use SCSS for stylesheets
13+
gem "sassc-rails"
14+
# Use Uglifier as compressor for JavaScript assets
15+
gem "uglifier", ">= 1.3.0"
16+
# See https://github.com/rails/execjs#readme for more supported runtimes
17+
# gem 'mini_racer', platforms: :ruby
18+
19+
# Use CoffeeScript for .coffee assets and views
20+
gem "coffee-rails"
21+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
22+
gem "turbolinks", "~> 5"
23+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
24+
gem "jbuilder"
25+
# Use Redis adapter to run Action Cable in production
26+
# gem 'redis', '~> 4.0'
27+
# Use ActiveModel has_secure_password
28+
# gem 'bcrypt', '~> 3.1.7'
29+
30+
# Use ActiveStorage variant
31+
# gem 'mini_magick', '~> 4.8'
32+
33+
# Use Capistrano for deployment
34+
# gem 'capistrano-rails', group: :development
35+
36+
gem "octicons_helper"
37+
38+
# Reduces boot times through caching; required in config/boot.rb
39+
gem "bootsnap", ">= 1.1.0", require: false
40+
41+
gem "benchmark-ips"
42+
43+
gem "haml"
44+
gem "slim"
45+
46+
group :development, :test do
47+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
48+
gem "byebug", platforms: [:mri, :mingw, :x64_mingw]
49+
end
50+
51+
group :development do
52+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
53+
gem "web-console", ">= 3.3.0"
54+
gem "listen", ">= 3.0.5", "< 3.2"
55+
end
56+
57+
group :development, :test do
58+
gem "capybara", ">= 2.15"
59+
gem "selenium-webdriver"
60+
gem "chromedriver-helper"
61+
gem "factory_bot_rails"
62+
gem "pry-rails"
63+
gem "rspec-rails"
64+
gem "rspec_junit_formatter"
65+
gem "wkhtmltoimage-binary"
66+
end
67+
68+
gem "simplecov", require: false, group: :test
69+
70+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
71+
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

0 commit comments

Comments
 (0)