appveyor: Should now fail test if test fail
Some checks failed
continuous-integration/appveyor/branch AppVeyor build failed
Some checks failed
continuous-integration/appveyor/branch AppVeyor build failed
This commit is contained in:
parent
bc2d3d9a9b
commit
b152f18fc3
2 changed files with 18 additions and 12 deletions
28
appveyor.yml
28
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:
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue