File: Rakefile

package info (click to toggle)
compass-singularitygs-plugin 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 592 kB
  • ctags: 15
  • sloc: ruby: 70; makefile: 29; sh: 4
file content (27 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (9)
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
task :default => [:test]

task :test do
  require 'fileutils'

  Dir.chdir('tests') do
    output_dir = 'output'
    FileUtils.mkdir_p output_dir
    ruby '.unit_tests.rb'
    FileUtils.rm_rf output_dir
  end
end

desc 'Compile baseline CSS'
task :compile do
  require 'compass'
  require 'compass/exec'

  Dir.chdir('tests') do
    Compass.add_configuration 'config.rb'
    Compass.configuration.project_path = Dir.pwd
    # Compile into baseline directory instead of test output directory
    Compass.configuration.css_dir = 'controls'
    Compass.compiler.clean!
    Compass.compiler.run
  end
end