mirror of https://github.com/tildeio/helix
Don't run tests (etc) if the build fails
This commit is contained in:
parent
32d6a67b11
commit
0dbe9d5b4f
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue