appveyor: Should now fail test if test fail
continuous-integration/appveyor/branch AppVeyor build failed Details

master
Jonatan Nilsson 2022-03-10 11:11:17 +00:00
parent bc2d3d9a9b
commit b152f18fc3
2 changed files with 18 additions and 12 deletions

View File

@ -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:

View File

@ -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(),