From cc877c53abbb1a8799b35dddac35b963dd5ecfdd Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 2 Mar 2015 17:41:05 -0800 Subject: Add rake task for brakeman --- lib/tasks/brakeman.rake | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/tasks/brakeman.rake (limited to 'lib/tasks') diff --git a/lib/tasks/brakeman.rake b/lib/tasks/brakeman.rake new file mode 100644 index 00000000000..0a1e76ea822 --- /dev/null +++ b/lib/tasks/brakeman.rake @@ -0,0 +1,9 @@ +desc 'Security check via brakeman' +task :brakeman do + if system("brakeman -w3 -z") + exit 0 + else + puts 'Security check failed' + exit 1 + end +end -- cgit v1.2.1 From 16e899ca8b44a87883464ada507f521d02548fe2 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 2 Mar 2015 18:11:50 -0800 Subject: Add brakeman rake task and improve code security --- lib/tasks/brakeman.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tasks') diff --git a/lib/tasks/brakeman.rake b/lib/tasks/brakeman.rake index 0a1e76ea822..abcb5f0ae46 100644 --- a/lib/tasks/brakeman.rake +++ b/lib/tasks/brakeman.rake @@ -1,6 +1,6 @@ desc 'Security check via brakeman' task :brakeman do - if system("brakeman -w3 -z") + if system("brakeman --skip-files lib/backup/repository.rb -w3 -z") exit 0 else puts 'Security check failed' -- cgit v1.2.1 From be165b18d0f3713a888767550ef66917c5a389ab Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 2 Mar 2015 18:22:37 -0800 Subject: Add brakeman and jasmine --- lib/tasks/test.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tasks') diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake index 3ea9290a814..a39d9649876 100644 --- a/lib/tasks/test.rake +++ b/lib/tasks/test.rake @@ -9,5 +9,5 @@ unless Rails.env.production? require 'coveralls/rake/task' Coveralls::RakeTask.new desc "GITLAB | Run all tests on CI with simplecov" - task :test_ci => [:rubocop, :spinach, :spec, 'coveralls:push'] + task :test_ci => [:rubocop, :brakeman, 'jasmine:ci', :spinach, :spec, 'coveralls:push'] end -- cgit v1.2.1