This repository was archived by the owner on Jul 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed
tools/travis/test/target.d Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- if [ ! -d /tmp/kui-packs ]; then
4
- mkdir /tmp/kui-packs
5
- else
6
- rm -f /tmp/kui-packs/*
7
- fi
3
+ rm -rf /tmp/kui-packs && mkdir /tmp/kui-packs
8
4
9
5
for i in plugins/* ; do
10
6
if [ -d $i ]; then
11
7
echo " $( tput setaf 8) packing $( basename $i ) $( tput sgr0) "
12
- (cd $i && npm pack >& /dev/null && mv kui-shell* .tgz /tmp/kui-packs) &
8
+ (cd $i && npm pack > /dev/null 2>> /tmp/kui-packs.err && mv kui-shell* .tgz /tmp/kui-packs) &
13
9
fi
14
10
done
15
11
16
12
for i in packages/* ; do
17
13
if [ -d $i ]; then
18
14
echo " $( tput setaf 8) packing $( basename $i ) $( tput sgr0) "
19
- (cd $i && npm pack >& /dev/null && mv kui-shell* .tgz /tmp/kui-packs) &
15
+ (cd $i && npm pack > /dev/null 2>> /tmp/kui-packs.err && mv kui-shell* .tgz /tmp/kui-packs) &
20
16
fi
21
17
done
22
18
23
19
wait
20
+ CODE=$?
21
+
22
+ if [ $CODE != 0 ]; then
23
+ echo " Error generating packs. You will find the error logs in /tmp/kui-packs.err"
24
+ if [ -n " $TRAVIS_JOB_ID " ]; then
25
+ cat /tmp/kui-packs.err
26
+ fi
27
+ fi
28
+
29
+ if [ -n " $TRAVIS_JOB_ID " ]; then
30
+ echo " Generated these packs:"
31
+ ls -l /tmp/kui-packs/
32
+ fi
24
33
25
34
for i in /tmp/kui-packs/* .tgz; do
26
35
mv $i ${i// -[[:digit:]].[[:digit:]].[[:digit:]]}
27
36
done
28
37
29
38
echo " $( tput setaf 2) done:$( tput sgr0) packs generated in /tmp/kui-packs"
39
+
40
+ exit $CODE
Original file line number Diff line number Diff line change 88
88
# we expect "docker not found" error on travis osx
89
89
# we still want to test the webpack build logic before building docker image
90
90
#
91
- echo " building external clients "
91
+ echo " building external client "
92
92
./clients/bin/mkclient.sh
93
93
94
94
echo " starting webpack dev server"
You can’t perform that action at this time.
0 commit comments