From b152f18fc31c217f83e4dcf63e226b9b959d1d93 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Thu, 10 Mar 2022 11:11:17 +0000 Subject: [PATCH] appveyor: Should now fail test if test fail --- appveyor.yml | 28 ++++++++++++++++------------ test/helpers.mjs | 2 ++ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 9c3a1e2..9be0849 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -29,8 +29,12 @@ test_script: ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 chmod -R 777 /appveyor/projects npm install - npm run test -- --ignore-only - npm run test:integration -- --ignore-only + if [ ! npm run test -- --ignore-only ]; then + exit 1 + fi + if [ ! npm run test:integration -- --ignore-only ]; then + exit 1 + fi artifacts: - path: ./*_sc-core.7z @@ -64,16 +68,16 @@ on_success: echo "Publishing new version to npm" npm publish fi - - sh: | - YELLOW='\033[0;33m' - NC='\033[0m' - LOCK_FILE="${HOME}/build.lock" - export APPVEYOR_SSH_BLOCK=true - touch "${LOCK_FILE}" - echo -e "Build paused. To resume it, open a bash session to run '${YELLOW}rm \"${LOCK_FILE}\"${NC}' command." - while [ -f "${LOCK_FILE}" ]; do - sleep 1 - done +# - sh: | +# YELLOW='\033[0;33m' +# NC='\033[0m' +# LOCK_FILE="${HOME}/build.lock" +# export APPVEYOR_SSH_BLOCK=true +# touch "${LOCK_FILE}" +# echo -e "Build paused. To resume it, open a bash session to run '${YELLOW}rm \"${LOCK_FILE}\"${NC}' command." +# while [ -f "${LOCK_FILE}" ]; do +# sleep 1 +# done # on build failure on_failure: diff --git a/test/helpers.mjs b/test/helpers.mjs index 5f6b608..4dad88e 100644 --- a/test/helpers.mjs +++ b/test/helpers.mjs @@ -4,9 +4,11 @@ import Util from '../core/util.mjs' export function createFakeLog() { return { + // debug: stub(), info: stub(), warn: stub(), error: stub(), + // fatal: stub(), event: { info: stub(), warn: stub(),