File: Rakefile

package info (click to toggle)
ruby-svg-graph 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,312 kB
  • sloc: javascript: 23,548; ruby: 4,234; xml: 224; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,060 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- ruby -*-
# -*- coding: utf-8 -*-

# TODO
#
#require 'rubygems'
#require 'hoe'
#
#Hoe.plugin :git
#
#require_relative 'lib/svggraph'
#
#Hoe.spec 'svg-graph' do
#  self.version=SVG::Graph::VERSION
#  self.developer('Sean Russell', 'ser_AT_germane-software.com')
#  self.developer('Claudio Bustos', 'clbustos_AT_gmail.com')
#  self.developer('Liehann Loots','liehhanl_AT_gmail.com')
#  self.developer('Piergiuliano Bossi','pgbossi_AT_gmail.com')
#  self.developer('Manuel Widmer','m-widmer_AT_gmx.com')
#  self.rubyforge_name = 'ruby-statsample' # if different than 'svg_graph'
#  self.remote_rdoc_dir = 'svg-graph'
#end

# by default run all unit tests with 'rake test'
task default: [:test]

task :test do
  [
    "test/test_data_point.rb",
    "test/test_plot.rb",
    "test/test_svg_graph.rb",
    "test/test_graph.rb",
    "test/run_examples_and_percy.io.rb"
  ].each do |file|
    # exec all above scripts (with simplecov if env is set)
    args = file
    if ENV['COVERAGE']
      args = '-r ./test/simplecov ' + file
    end
    ruby args
  end
end