Don't run tests (etc) if the build fails

This commit is contained in:
Godfrey Chan 2018-06-02 09:02:10 +09:00
parent 32d6a67b11
commit 0dbe9d5b4f
2 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ module HelixRuntime
end
task "cargo:build" => ["helix:pre_build", "helix:check_path"] do
project.cargo_build
project.cargo_build || abort
end
task "cargo:clean" do
@ -61,7 +61,7 @@ module HelixRuntime
desc "Build #{project.name}"
task :build => ["helix:pre_build", "helix:check_path"] do
project.build
project.build || abort
end
desc "Remove build artifacts"

View File

@ -117,11 +117,11 @@ module HelixRuntime
raise "native source doesn't exist, run `cargo_build` first; source=#{source}" unless File.exist?(source)
FileUtils.mkdir_p(File.dirname(native_path))
FileUtils.cp source, native_path
true
end
def build
cargo_build
copy_native
cargo_build && copy_native
end
def clobber