Commit effc73e
Changed files (4)
spec/spec_helper.rb
@@ -1,3 +1,5 @@
+require "codeclimate-test-reporter"
+CodeClimate::TestReporter.start
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause this
.travis.yml
@@ -1,29 +1,32 @@
before_install:
- - "echo '--colour' > ~/.rspec"
- - "echo 'gem: --no-document' > ~/.gemrc"
- - export DISPLAY=:99.0
- - sh -e /etc/init.d/xvfb start
+- echo '--colour' > ~/.rspec
+- 'echo ''gem: --no-document'' > ~/.gemrc'
+- export DISPLAY=:99.0
+- sh -e /etc/init.d/xvfb start
before_script:
- - cp .env.example .env
- - cp config/database.yml.example config/database.yml
- - psql -c 'create database "urkel_test";' -U postgres
+- cp .env.example .env
+- cp config/database.yml.example config/database.yml
+- psql -c 'create database "urkel_test";' -U postgres
branches:
only:
- - master
+ - master
cache:
- - bundler
+- bundler
language:
- - ruby
+- ruby
notifications:
email:
- - false
+ - false
rvm:
- - 2.1.4
+- 2.1.4
addons:
- postgresql: "9.3"
+ postgresql: '9.3'
+ code_climate:
+ repo_token:
+ secure: EMfNQ6020A8tTn5Xg3GvE5u2bmCYw1HiR0CAehj2wIBy46xMhANwu+p9qduP3u0RvDeON5RiQ0ZuFJXKJbuoxssBhgkBHE9bj+9le5KB5eVMxhuCEphREVpXbYW5DcUKrUPBVa1w35fA8LOZOE2J92zPJqtAXju0pbx6VwKjc+M=
deploy:
provider: heroku
- run: "rake db:migrate"
+ run: rake db:migrate
strategy: git
app:
master: urkel-staging
Gemfile
@@ -59,6 +59,9 @@ group :development, :test do
gem 'ffaker'
gem 'foreman'
end
+group :test do
+ gem "codeclimate-test-reporter", require: nil
+end
group :staging, :production do
gem 'rails_12factor'
gem 'dalli'
Gemfile.lock
@@ -56,6 +56,8 @@ GEM
columnize (~> 0.8)
debugger-linecache (~> 1.2)
slop (~> 3.6)
+ codeclimate-test-reporter (0.4.1)
+ simplecov (>= 0.7.1, < 1.0.0)
coderay (1.1.0)
coffee-rails (4.1.0)
coffee-script (>= 2.2.0)
@@ -69,6 +71,7 @@ GEM
database_cleaner (1.3.0)
debugger-linecache (1.2.0)
diff-lcs (1.2.5)
+ docile (1.1.5)
dotenv (0.11.1)
dotenv-deployment (~> 0.0.2)
dotenv-deployment (0.0.2)
@@ -178,6 +181,11 @@ GEM
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
+ simplecov (0.9.1)
+ docile (~> 1.1.0)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.8.0)
+ simplecov-html (0.8.0)
slop (3.6.0)
spank (0.0.1393558686)
spring (1.1.3)
@@ -213,6 +221,7 @@ DEPENDENCIES
bcrypt
bootstrap-sass
byebug
+ codeclimate-test-reporter
coffee-rails
dalli
database_cleaner