File: Rakefile

package info (click to toggle)
compass-breakpoint-plugin 2.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 580 kB
  • sloc: ruby: 59; sh: 6; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (8)
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