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
|
ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
|
||||||
chmod -R 777 /appveyor/projects
|
chmod -R 777 /appveyor/projects
|
||||||
npm install
|
npm install
|
||||||
npm run test -- --ignore-only
|
if [ ! npm run test -- --ignore-only ]; then
|
||||||
npm run test:integration -- --ignore-only
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ ! npm run test:integration -- --ignore-only ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: ./*_sc-core.7z
|
- path: ./*_sc-core.7z
|
||||||
|
@ -64,16 +68,16 @@ on_success:
|
||||||
echo "Publishing new version to npm"
|
echo "Publishing new version to npm"
|
||||||
npm publish
|
npm publish
|
||||||
fi
|
fi
|
||||||
- sh: |
|
# - sh: |
|
||||||
YELLOW='\033[0;33m'
|
# YELLOW='\033[0;33m'
|
||||||
NC='\033[0m'
|
# NC='\033[0m'
|
||||||
LOCK_FILE="${HOME}/build.lock"
|
# LOCK_FILE="${HOME}/build.lock"
|
||||||
export APPVEYOR_SSH_BLOCK=true
|
# export APPVEYOR_SSH_BLOCK=true
|
||||||
touch "${LOCK_FILE}"
|
# touch "${LOCK_FILE}"
|
||||||
echo -e "Build paused. To resume it, open a bash session to run '${YELLOW}rm \"${LOCK_FILE}\"${NC}' command."
|
# echo -e "Build paused. To resume it, open a bash session to run '${YELLOW}rm \"${LOCK_FILE}\"${NC}' command."
|
||||||
while [ -f "${LOCK_FILE}" ]; do
|
# while [ -f "${LOCK_FILE}" ]; do
|
||||||
sleep 1
|
# sleep 1
|
||||||
done
|
# done
|
||||||
|
|
||||||
# on build failure
|
# on build failure
|
||||||
on_failure:
|
on_failure:
|
||||||
|
|
|
@ -4,9 +4,11 @@ import Util from '../core/util.mjs'
|
||||||
|
|
||||||
export function createFakeLog() {
|
export function createFakeLog() {
|
||||||
return {
|
return {
|
||||||
|
// debug: stub(),
|
||||||
info: stub(),
|
info: stub(),
|
||||||
warn: stub(),
|
warn: stub(),
|
||||||
error: stub(),
|
error: stub(),
|
||||||
|
// fatal: stub(),
|
||||||
event: {
|
event: {
|
||||||
info: stub(),
|
info: stub(),
|
||||||
warn: stub(),
|
warn: stub(),
|
||||||
|
|
Loading…
Reference in a new issue