mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
knapsack report generation
This commit is contained in:
13
.travis.yml
13
.travis.yml
@@ -15,11 +15,12 @@ env:
|
||||
- TZ="Australia/Melbourne"
|
||||
- TIMEZONE="Australia/Melbourne"
|
||||
matrix:
|
||||
- TEST_CASES="./spec/features/admin" GITHUB_DEPLOY="true"
|
||||
- TEST_CASES="./spec/features/consumer ./spec/serializers ./spec/performance"
|
||||
- TEST_CASES="./spec/models"
|
||||
- TEST_CASES="./spec/controllers ./spec/views ./spec/jobs"
|
||||
- TEST_CASES="./spec/requests ./spec/helpers ./spec/mailers ./spec/lib" KARMA="true"
|
||||
- TEST_CASES="./spec"
|
||||
# - TEST_CASES="./spec/features/admin" GITHUB_DEPLOY="true"
|
||||
# - TEST_CASES="./spec/features/consumer ./spec/serializers ./spec/performance"
|
||||
# - TEST_CASES="./spec/models"
|
||||
# - TEST_CASES="./spec/controllers ./spec/views ./spec/jobs"
|
||||
# - TEST_CASES="./spec/requests ./spec/helpers ./spec/mailers ./spec/lib" KARMA="true"
|
||||
|
||||
before_script:
|
||||
- cp config/database.travis.yml config/database.yml
|
||||
@@ -36,7 +37,7 @@ before_script:
|
||||
|
||||
script:
|
||||
- '[ "$KARMA" = "true" ] && bundle exec rake karma:run || echo "Skipping karma run"'
|
||||
- "bundle exec rspec $TEST_CASES"
|
||||
- "KNAPSACK_GENERATE_REPORT=true bundle exec rspec $TEST_CASES"
|
||||
|
||||
after_success:
|
||||
- >
|
||||
|
||||
1
Gemfile
1
Gemfile
@@ -105,6 +105,7 @@ group :test, :development do
|
||||
gem 'json_spec'
|
||||
gem 'unicorn-rails'
|
||||
gem 'atomic'
|
||||
gem 'knapsack'
|
||||
end
|
||||
|
||||
group :test do
|
||||
|
||||
@@ -431,6 +431,9 @@ GEM
|
||||
actionpack (>= 3.0.0)
|
||||
activesupport (>= 3.0.0)
|
||||
kgio (2.9.3)
|
||||
knapsack (1.5.1)
|
||||
rake
|
||||
timecop (>= 0.1.0)
|
||||
launchy (2.1.2)
|
||||
addressable (~> 2.3)
|
||||
letter_opener (1.0.0)
|
||||
@@ -684,6 +687,7 @@ DEPENDENCIES
|
||||
immigrant
|
||||
jquery-rails
|
||||
json_spec
|
||||
knapsack
|
||||
letter_opener
|
||||
momentjs-rails
|
||||
newrelic_rpm
|
||||
@@ -726,3 +730,6 @@ DEPENDENCIES
|
||||
whenever
|
||||
wicked_pdf
|
||||
wkhtmltopdf-binary
|
||||
|
||||
BUNDLED WITH
|
||||
1.10.6
|
||||
|
||||
2
Rakefile
2
Rakefile
@@ -5,3 +5,5 @@
|
||||
require File.expand_path('../config/application', __FILE__)
|
||||
|
||||
Openfoodnetwork::Application.load_tasks
|
||||
|
||||
Knapsack.load_tasks if defined?(Knapsack)
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
require 'knapsack'
|
||||
|
||||
# CUSTOM_CONFIG_GOES_HERE
|
||||
|
||||
Knapsack::Adapters::RSpecAdapter.bind
|
||||
|
||||
require 'rubygems'
|
||||
|
||||
# Require pry when we're not inside Travis-CI
|
||||
|
||||
Reference in New Issue
Block a user