diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-06-23 15:24:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 08:24:02 -0500 |
commit | 239b709f97028d3595f615e914fc4662ae48925f (patch) | |
tree | b4f59b41a0493593a1afc5e0320a93eaf35273d2 /share/spack/qa | |
parent | 404ff9eb326566b98d836af92acf4e91ac419392 (diff) | |
download | spack-239b709f97028d3595f615e914fc4662ae48925f.tar.gz spack-239b709f97028d3595f615e914fc4662ae48925f.tar.bz2 spack-239b709f97028d3595f615e914fc4662ae48925f.tar.xz spack-239b709f97028d3595f615e914fc4662ae48925f.zip |
Added unit tests to Github Actions (#16610)
* Added unit tests to Github Actions
* Set user e-mail and name for git tests to succeed
* Simplify setup.sh logic
* Replicate Travis script on Github Actions
* Update flags since '.' is not allowed
* Added badge, simplified workflow
* Remove pinning of coverage
* Remove unit tests run on Github Actions from Travis
Diffstat (limited to 'share/spack/qa')
-rwxr-xr-x | share/spack/qa/setup.sh | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/share/spack/qa/setup.sh b/share/spack/qa/setup.sh index 61fb2a7706..6536479015 100755 --- a/share/spack/qa/setup.sh +++ b/share/spack/qa/setup.sh @@ -20,24 +20,15 @@ export SPACK_ROOT=$(realpath "$QA_DIR/../../..") coverage="" coverage_run="" -# bash coverage depends on some other factors -- there are issues with -# kcov for Python 2.6, unit tests, and build tests. -if [[ $TEST_SUITE == unit && # kcov segfaults for the MPICH build test - $TRAVIS_OS_NAME == linux && - $TRAVIS_PYTHON_VERSION != 2.6 ]]; -then - BASH_COVERAGE="true" -else - BASH_COVERAGE="false" -fi - # Set up some variables for running coverage tests. if [[ "$COVERAGE" == "true" ]]; then # these set up coverage for Python coverage=coverage coverage_run="coverage run" - if [ "$BASH_COVERAGE" = true ]; then + # bash coverage depends on some other factors -- there are issues with + # kcov for Python 2.6, unit tests, and build tests. + if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then mkdir -p coverage cc_script="$SPACK_ROOT/lib/spack/env/cc" bashcov=$(realpath ${QA_DIR}/bashcov) |