BlueBrain / spack-packages

Repository of spack external packages
7 stars 6 forks source link

Improve showing build log failure on Travis/Jenkins #50

Closed pramodskumbhar closed 7 years ago

pramodskumbhar commented 7 years ago

Currently we are doing:

    # install package
    (spack install -v $package; exit 0)

    # check if package installed properly
    if [[ `spack find $package` == *"No package matches"* ]];  then

        echo " == > PACKAGE INSTALLATION CHECK FAILED, BUILD LOG : "
        cat `spack location $package`/spack-build.out
        exit 1

    fi

But if are installing dependency and that is failed then location is not created yet.

pramodskumbhar commented 7 years ago

Spack now has --show-log-on-error option for install. Fixed upstream.