Merge pull request #151 from tildeio/fix-build

Don't run tests (etc) if the build fails
This commit is contained in:
Godfrey Chan 2018-06-01 18:03:31 -07:00 committed by GitHub
commit be0cffa442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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