always clean project before :test is called from Rakefile

This commit is contained in:
Corey Johnson
2012-06-11 09:27:13 -07:00
parent cffadcf4a8
commit 049f589de0

View File

@@ -14,6 +14,12 @@ task :build => :"verify-prerequisites" do
end
end
desc "Clean build Atom via `xcodebuild`"
task :clean do
output = `xcodebuild clean SYMROOT=#{BUILD_DIR}`
rm_rf BUILD_DIR
end
desc "Create the Atom.app for distribution"
task :package => :build do
if path = application_path()
@@ -37,7 +43,7 @@ task :run => :build do
end
desc "Run the specs"
task :test do
task :test => :clean do
$ATOM_ARGS.push "--test", "--headless"
Rake::Task["run"].invoke
end