diff --git a/recipes/vcf-validator/build.sh b/recipes/vcf-validator/build.sh index f34d2da55bd8b..b480520206ed5 100644 --- a/recipes/vcf-validator/build.sh +++ b/recipes/vcf-validator/build.sh @@ -1,16 +1,18 @@ +#!/bin/bash + # Install additional dependencies if [ -z ${OSX_ARCH+x} ]; then ./install_dependencies.sh linux - mkdir build - cd build - cmake -G "Unix Makefiles" .. else ./install_dependencies.sh osx - mkdir build - cd build - cmake -G "Unix Makefiles" .. fi -make -j2 -cd .. -./build/bin/test_validation_suite -echo "Done with vcf-validator" \ No newline at end of file +mkdir build || { echo "Failed to create build directory" >&2; exit 1; } +cd build || { echo "Failed to go into build directory" >&2; exit 1; } +cmake -G "Unix Makefiles" .. +make -j2 || { echo "Build failed" >&2; exit 1; } +cd .. || { echo "Failed to return to parent directory" >&2; exit 1; } +if ! ./build/bin/test_validation_suite; then + echo "Validation suite failed" >&2 + exit 1 +fi +echo "Done with vcf-validator" diff --git a/recipes/vcf-validator/meta.yaml b/recipes/vcf-validator/meta.yaml index e149696b88801..97f15a68fa213 100644 --- a/recipes/vcf-validator/meta.yaml +++ b/recipes/vcf-validator/meta.yaml @@ -49,7 +49,7 @@ test: about: home: https://github.com/EBIVariation/vcf-validator - summary: EBI EVA - + summary: EBI EVA - Validation tool for VCF file format compliance license: Apache-2.0 license_file: LICENSE