Skip to content

Commit 33186eb

Browse files
committed
Try to sort out what happened after failure on Travis CI
1 parent fc68552 commit 33186eb

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ install:
6060
script:
6161
- bash ${TRAVIS_BUILD_DIR}/tests/ci/run-tests.sh
6262

63+
after_failure:
64+
- bash ${TRAVIS_BUILD_DIR}/tests/ci/after-failure.sh
6365
addons:
6466
apt:
6567
packages:

tests/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.sh
22
!ci/run-tests.sh
3+
!ci/after-failure.sh
34
*.out
45
*.exp
56
*.diff

tests/ci/after-failure.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Zephir Parser
4+
#
5+
# Copyright (c) 2013-present Zephir Team and contributors
6+
#
7+
# This source file is subject the MIT license, that is bundled with
8+
# this package in the file LICENSE, and is available through the
9+
# world-wide-web at the following url:
10+
# http://zephir-lang.com/license.html
11+
#
12+
# If you did not receive a copy of the MIT license and are unable
13+
# to obtain it through the world-wide-web, please send a note to
14+
# [email protected] so we can mail you a copy immediately.
15+
16+
# The -e flag causes the script to exit as soon as one command returns a non-zero exit code.
17+
# This can be handy if you want whatever script you have to exit early.
18+
# It also helps in complex installation scripts where one failed command wouldn’t otherwise cause the installation to fail.
19+
set -ev
20+
21+
if [ -f "${TRAVIS_BUILD_DIR}/configure.log" ]; then
22+
cat "${TRAVIS_BUILD_DIR}/configure.log"
23+
fi
24+
25+
ls -al ${TRAVIS_BUILD_DIR}

0 commit comments

Comments
 (0)