forked from renggli/pharo-builder
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuildTravisStatusCheck.sh
More file actions
executable file
·30 lines (30 loc) · 1011 Bytes
/
buildTravisStatusCheck.sh
File metadata and controls
executable file
·30 lines (30 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#
# checks for build success/failure and dumps appropriate file to stdou
#
# -verbose flag causes unconditional transcript display
#
# Copyright (c) 2012 VMware, Inc. All Rights Reserved <dhenrich@vmware.com>.
# Copyright (c) 2013-2014 GemTalk Systems, LLC <dhenrich@gemtalksystems.com>.
#
if ( test -e TravisCISuccess.txt); then
echo "SUCCESS: $(basename $0)"
cat TravisCISuccess.txt # dump first in case travis truncates log
if [ "$1" = "-verbose" ] ; then
$BUILDER_CI_HOME/dumpTranscript.sh
cat TravisCISuccess.txt # dump last in case travis doesn't truncate log
fi
exit 0
fi
if ( test -e TravisCIFailure.txt ); then
echo "FAILURE: $(basename $0)"
cat TravisCIFailure.txt # dump first in case travis truncates log
$BUILDER_CI_HOME/dumpTranscript.sh
cat TravisCIFailure.txt # dump last in case travis doesn't truncate log
exit 1
fi
echo "neither SUCCESS nor FAILURE: $(basename $0)"
if [ "$1" = "-verbose" ] ; then
$BUILDER_CI_HOME/dumpTranscript.sh
fi
exit 1