Skip to content

Commit

Permalink
trying to fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
markets committed Apr 4, 2020
1 parent 8bc377c commit 88289aa
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 58 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ env:
global:
- DATABASE_URL=postgres://postgres@localhost/timeoverflow_test
- CC_TEST_REPORTER_ID=025bc15a0fa9afa52d86ee24fea845cf1d363f48a466bcf2cef8ab80c29acb28
before_install:
- gem install bundler:1.17.3
before_script:
- bundle exec rake db:setup
- bundle exec rails db:setup
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ GEM
unf_ext
unf_ext (0.0.7.6)
unicode-display_width (1.6.1)
unicorn (5.5.3)
unicorn (5.5.4)
kgio (~> 2.6)
raindrops (~> 0.7)
warden (1.2.8)
Expand Down
2 changes: 0 additions & 2 deletions app/admin/user.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

ActiveAdmin.register User do
action_item :upload_csv, only: :index do
link_to I18n.t("active_admin.users.upload_from_csv"), action: "upload_csv"
Expand Down
5 changes: 0 additions & 5 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ FileUtils.chdir APP_ROOT do
system! 'gem install bundler --conservative'
system('bundle check') || system!('bundle install')

# puts "\n== Copying sample files =="
# unless File.exist?('config/database.yml')
# FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
# end

puts "\n== Preparing database =="
system! 'bin/rails db:prepare'

Expand Down
16 changes: 0 additions & 16 deletions bin/unicorn

This file was deleted.

16 changes: 0 additions & 16 deletions bin/unicorn_rails

This file was deleted.

6 changes: 5 additions & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# config.active_storage.service = :local

# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
config.action_mailer.raise_delivery_errors = true

config.action_mailer.perform_caching = false

Expand All @@ -50,6 +50,10 @@
# Highlight code that triggered database queries in logs.
config.active_record.verbose_query_logs = true

# Asset digests allow you to set far-future HTTP expiration dates on all assets,
# yet still be able to expire them through the digest params.
config.assets.digest = true

# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
Expand Down
9 changes: 7 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@
# Apache or NGINX already handles this.
config.public_file_server.enabled = true

# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass
# Compress CSS & JS using preprocessors.
config.assets.js_compressor = :uglifier
config.assets.css_compressor = :sass

# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = true

# Asset digests allow you to set far-future HTTP expiration dates on all assets,
# yet still be able to expire them through the digest params.
config.assets.digest = true

# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = 'http://assets.example.com'

Expand Down
11 changes: 2 additions & 9 deletions config/initializers/active_admin.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# encoding: utf-8

# coding: utf-8

ActiveAdmin.setup do |config|

# == Site Title
#
# Set the title that is displayed on the main layout
Expand Down Expand Up @@ -144,8 +139,8 @@
# Active Admin resources and pages from here.
#
# config.before_filter :do_something_awesome


# == Setting a Favicon
#
# config.favicon = '/assets/favicon.ico'
Expand Down Expand Up @@ -248,6 +243,4 @@
# You can enable or disable them for all resources here.
#
# config.filters = true


end
1 change: 0 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
Expand Down
2 changes: 0 additions & 2 deletions spec/controllers/inquiries_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
organization: test_organization,
category: test_category)
end
include_context "stub browser locale"
before { set_browser_locale("ca") }

describe "GET #index" do
context "with a logged user" do
Expand Down

0 comments on commit 88289aa

Please sign in to comment.