mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
always clean project before :test is called from Rakefile
This commit is contained in:
8
Rakefile
8
Rakefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user