Skip to content

Commit dd4ec8c

Browse files
committed
Wrap the build logs for travis
1 parent 0b67aef commit dd4ec8c

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.travis/script.sh

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,24 @@
22

33
set -ex
44

5-
./appimage/build-plugin.sh
6-
./appimage/build-python.sh python2
7-
./appimage/build-python.sh python3
8-
./appimage/build-python.sh scipy
9-
./appimage/build-python.sh xonsh
5+
6+
wrapped_run() {
7+
local script="./appimage/build-$1.sh"
8+
local arg="$2"
9+
local log
10+
if [ -z "$2" ]; then
11+
log="plugin.log"
12+
else
13+
log="${2}.log"
14+
fi
15+
16+
("${script}" "${arg}" >& "${log}" ; tail -300 "${log}")
17+
}
18+
19+
wrapped_run plugin
20+
wrapped_run python python2
21+
wrapped_run python python3
22+
wrapped_run python scipy
23+
wrapped_run python xonsh
1024

1125
python3 -m tests

0 commit comments

Comments
 (0)