Skip to content

Commit 8109d16

Browse files
authored
Merge pull request #205 from themarshallproject/develop
Version 0.3.0
2 parents d444f9f + b5d6307 commit 8109d16

40 files changed

+431
-335
lines changed

.circleci/config.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/themarshallproject/klaxon
5+
parallelism: 1
6+
docker:
7+
# Includes ruby, node, and chrome/phantomjs
8+
# TODO: Go back to the non-legacy version of this image, when our test
9+
# infrastructure no longer depends on phantomjs
10+
- image: circleci/ruby:2.4 # ...with this image as the primary container; this is where all `steps` will run
11+
environment: # environment variables for primary container
12+
BUNDLE_JOBS: 3
13+
BUNDLE_RETRY: 3
14+
BUNDLE_PATH: vendor/bundle
15+
PGHOST: 127.0.0.1
16+
PGUSER: klaxon-test-user
17+
RAILS_ENV: test
18+
RACK_ENV: test
19+
NODE_ENV: test
20+
- image: circleci/postgres:9.5-alpine # database image
21+
environment: # environment variables for database
22+
POSTGRES_USER: klaxon-test-user
23+
POSTGRES_DB: klaxon_test
24+
POSTGRES_PASSWORD: ""
25+
steps:
26+
# Check out the repo
27+
- checkout
28+
29+
# Dependencies
30+
# Which version of bundler?
31+
- run:
32+
name: Which bundler?
33+
command: bundle -v
34+
35+
# Restore the dependency cache
36+
- restore_cache:
37+
keys:
38+
- klaxon-v2-{{ checksum "Gemfile.lock" }}-
39+
- klaxon-v2-
40+
41+
- run:
42+
name: Bundle Install
43+
command: bundle check || bundle install
44+
45+
# Store bundle cache
46+
- save_cache:
47+
key: klaxon-v2-{{ checksum "Gemfile.lock" }}-
48+
paths:
49+
- vendor/bundle
50+
51+
- run:
52+
name: Compile assets
53+
command: bundle exec rake assets:precompile assets:clean
54+
environment:
55+
RAILS_GROUPS: assets
56+
57+
- run:
58+
name: Wait for DB
59+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
60+
61+
- run:
62+
command: bundle exec rake db:create db:schema:load --trace
63+
environment:
64+
RAILS_ENV: test
65+
RACK_ENV: test
66+
67+
- run:
68+
name: Make results directory
69+
command: mkdir -p test-results/rspec/
70+
71+
- run:
72+
name: Run the tests
73+
command: bundle exec rspec -r rspec_junit_formatter --format RspecJunitFormatter -o test-results/rspec/rspec.xml
74+
75+
# Save test results for reporting in the UI
76+
- store_test_results:
77+
path: test-results

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.4
1+
2.4.4

Gemfile

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
source 'https://rubygems.org'
2-
ruby '2.3.4'
2+
ruby '2.4.4'
33

4-
gem 'rails', '~> 4.2'
5-
gem 'pg', '~> 0.15'
4+
gem 'rails', '~> 5.2.1'
5+
gem 'pg', '~> 0.21'
66
gem 'sass-rails', '~> 5.0'
77
gem 'uglifier', '>= 1.3.0'
88
gem 'therubyracer'
99

1010
gem 'dotenv'
1111
gem 'jquery-rails'
1212
gem 'turbolinks'
13-
gem 'sdoc', '~> 0.4.0', group: :doc
13+
gem 'bootsnap', require: false
14+
gem 'coffee-rails'
15+
gem 'sdoc', '~> 1.0.0', group: :doc
1416

1517
gem 'rack-cache'
16-
gem 'bcrypt', '~> 3.1.7'
17-
gem 'puma', '~> 3.2'
18+
gem 'bcrypt', '~> 3.1.12'
19+
gem 'puma', '~> 3.12'
1820
gem 'rails_12factor'
1921

20-
gem 'simple_form', '~> 3.2'
22+
gem 'simple_form', '~> 4.0'
2123

2224
gem 'jwt'
2325
gem 'premailer-rails'
@@ -26,25 +28,26 @@ gem 'httparty'
2628
gem 'diffy'
2729
gem 'kramdown'
2830

29-
# only used for alerting SQS.
30-
gem 'aws-sdk', '~> 2.0'
31+
gem 'aws-sdk-sqs', '~> 1.6'
3132

3233
group :development, :test do
3334
gem 'byebug'
34-
gem 'rspec-rails', '~> 3.0'
35+
gem 'rspec-rails', '~> 3.8'
3536
gem 'guard-rspec', require: false
36-
gem 'factory_girl_rails', '~> 4.0'
37+
gem 'factory_bot_rails', '~> 4.11'
3738
gem 'database_cleaner'
3839
gem 'sinatra'
3940
end
4041

4142
group :test do
4243
gem 'webmock'
44+
gem 'rails-controller-testing'
45+
gem 'rspec_junit_formatter'
4346
gem 'codeclimate-test-reporter', require: nil
4447
end
4548

4649
group :development do
4750
gem 'letter_opener'
48-
gem 'web-console', '~> 2.0'
51+
gem 'web-console', '~> 3.7'
4952
gem 'spring'
5053
end

0 commit comments

Comments
 (0)