ci: test zip package with space in its root
This commit is contained in:
parent
a770983882
commit
159173d261
|
@ -133,7 +133,10 @@ jobs:
|
|||
pkg_name=$(basename _packages/${EMQX_NAME}/emqx-*.zip)
|
||||
unzip -q _packages/${EMQX_NAME}/$pkg_name
|
||||
gsed -i '/emqx_telemetry/d' ./emqx/data/loaded_plugins
|
||||
./emqx/bin/emqx start || cat emqx/log/erlang.log.1
|
||||
# test with a spaces in path
|
||||
mv ./emqx "./emqx home/"
|
||||
cd "./emqx home/"
|
||||
./bin/emqx start || cat log/erlang.log.1
|
||||
ready='no'
|
||||
for i in {1..10}; do
|
||||
if curl -fs 127.0.0.1:18083 > /dev/null; then
|
||||
|
@ -144,12 +147,13 @@ jobs:
|
|||
done
|
||||
if [ "$ready" != "yes" ]; then
|
||||
echo "Timed out waiting for emqx to be ready"
|
||||
cat emqx/log/erlang.log.1
|
||||
cat log/erlang.log.1
|
||||
exit 1
|
||||
fi
|
||||
./emqx/bin/emqx_ctl status
|
||||
./emqx/bin/emqx stop
|
||||
rm -rf emqx
|
||||
./bin/emqx_ctl status
|
||||
./bin/emqx stop
|
||||
cd ..
|
||||
rm -rf "emqx home"
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: macos
|
||||
|
|
Loading…
Reference in New Issue