diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a27d9993d358f86195d6d04b7cfb46db42c8f1a3..7193741d3c3c08abaf33341feb5942fc4498ca5c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,10 +10,10 @@ before_script: - git submodule update --init --recursive - mkdir -p build -hqr_build: +hqr_build_linux: stage: build artifacts: - name: hqr_build + name: hqr_build_linux expire_in: 42 minutes untracked: true script: @@ -27,12 +27,12 @@ hqr_build: - branches - master@solverstack/hqr -hqr_test: +hqr_test_linux: stage: test dependencies: - - hqr_build + - hqr_build_linux artifacts: - name: hqr_test + name: hqr_test_linux expire_in: 42 minutes untracked: true script: @@ -47,8 +47,8 @@ hqr_test: hqr_sonar: stage: sonar dependencies: - - hqr_build - - hqr_test + - hqr_build_linux + - hqr_test_linux artifacts: name: hqr_sonar expire_in: 1 week @@ -62,6 +62,40 @@ hqr_sonar: only: - master@solverstack/hqr +hqr_build_macosx: + tags: ['macosx'] + stage: build + artifacts: + name: hqr_build_macosx + expire_in: 42 minutes + untracked: true + script: + - cd build + - cmake .. -DCMAKE_INSTALL_PREFIX=${PWD}/../install -DBUILD_SHARED_LIBS=ON -DCMAKE_VERBOSE_MAKEFILE=ON | tee ../hqr-build.log + - ctest --no-compress-output -V -j 5 + -D ExperimentalBuild + -D ExperimentalSubmit | tee -a hqr_build.log + - make install | tee -a ../hqr-build.log + only: + - branches + - master@solverstack/hqr + +hqr_test_macosx: + tags: ['macosx'] + stage: test + dependencies: + - hqr_build_macosx + artifacts: + name: hqr_test_macosx + expire_in: 42 minutes + untracked: true + script: + - source install/bin/hqr_env.sh + - (cd build && + eval "ctest -D ExperimentalTest + -D ExperimentalCoverage + -D ExperimentalSubmit | tee ../hqr-tests.log") + # pages: # stage: deploy # script: diff --git a/testings/CMakeLists.txt b/testings/CMakeLists.txt index fbef029c209c88bd737025f00c95f26f77980a7a..97e807be1f598ee51fefe22c9593f0d72c034c3c 100644 --- a/testings/CMakeLists.txt +++ b/testings/CMakeLists.txt @@ -49,10 +49,10 @@ if ( NOT BUILD_SUBPROJECT ) add_test( test_svd ./testing_svd -X ) add_test( test_systolic ./testing_systolic -X ) add_test( test_tphqr ./testing_tphqr -X ) - add_test( single_hqr ./testing_hqr -v ) - add_test( single_svd ./testing_svd -v ) - add_test( single_systolic ./testing_systolic -v ) - add_test( single_tphqr ./testing_tphqr -v ) + add_test( single_hqr ./testing_hqr -v 2 ) + add_test( single_svd ./testing_svd -v 2 ) + add_test( single_systolic ./testing_systolic -v 2 ) + add_test( single_tphqr ./testing_tphqr -v 2 ) add_test( usage ./testing_tphqr -h ) add_test( test_print ./testing_print -M 27 -N 7 -P 3 ) endif()