chore(CI): fix relup error
This commit is contained in:
parent
5d30e52e73
commit
1098df815a
|
@ -1 +0,0 @@
|
||||||
TARGET=emqx/emqx
|
|
|
@ -1,7 +1,7 @@
|
||||||
{erl_opts, [debug_info]}.
|
{erl_opts, [debug_info]}.
|
||||||
{deps,
|
{deps,
|
||||||
[
|
[
|
||||||
{minirest, {git, "https://github.com/emqx/minirest.git", {tag, "0.3.1"}}}
|
{minirest, {git, "https://github.com/emqx/minirest.git", {tag, "0.3.5"}}}
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
{shell, [
|
{shell, [
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
!cd emqx
|
!cd emqx
|
||||||
!sed -i 's|listener.wss.external[ \t]*=.*|listener.wss.external = 8085|g' etc/emqx.conf
|
!sed -i 's|listener.wss.external[ \t]*=.*|listener.wss.external = 8085|g' etc/emqx.conf
|
||||||
!sed -i '/emqx_telemetry/d' data/loaded_plugins
|
!sed -i '/emqx_telemetry/d' data/loaded_plugins
|
||||||
|
|
||||||
!./bin/emqx start
|
!./bin/emqx start
|
||||||
?EMQ X .* is started successfully!
|
?EMQ X .* is started successfully!
|
||||||
?SH-PROMPT
|
?SH-PROMPT
|
||||||
|
@ -40,6 +41,7 @@
|
||||||
!cd emqx2
|
!cd emqx2
|
||||||
|
|
||||||
!sed -i '/emqx_telemetry/d' data/loaded_plugins
|
!sed -i '/emqx_telemetry/d' data/loaded_plugins
|
||||||
|
|
||||||
!./bin/emqx start
|
!./bin/emqx start
|
||||||
?EMQ X (.*) is started successfully!
|
?EMQ X (.*) is started successfully!
|
||||||
?SH-PROMPT
|
?SH-PROMPT
|
||||||
|
@ -72,15 +74,22 @@
|
||||||
|
|
||||||
[shell bench]
|
[shell bench]
|
||||||
!cd $BENCH_PATH
|
!cd $BENCH_PATH
|
||||||
|
|
||||||
!./emqtt_bench pub -c 10 -I 1000 -t t/%i -s 64 -L 300
|
!./emqtt_bench pub -c 10 -I 1000 -t t/%i -s 64 -L 300
|
||||||
???sent
|
???sent
|
||||||
|
|
||||||
[shell emqx]
|
[shell emqx]
|
||||||
!cp -f ../$PROFILE-ubuntu20.04-$VSN-amd64.zip releases/
|
!echo "" > log/emqx.log.1
|
||||||
!./bin/emqx install $VSN
|
|
||||||
?SH-PROMPT
|
?SH-PROMPT
|
||||||
!./bin/emqx versions |grep permanent | grep -oE "[0-9].[0-9].[0-9]"
|
|
||||||
?$VSN
|
!cp -f ../$PROFILE-ubuntu20.04-$VSN-amd64.zip releases/
|
||||||
|
|
||||||
|
!./bin/emqx install $VSN
|
||||||
|
?Made release permanent: "$VSN"
|
||||||
|
?SH-PROMPT
|
||||||
|
|
||||||
|
!./bin/emqx versions |grep permanent
|
||||||
|
?(.*)$VSN
|
||||||
?SH-PROMPT
|
?SH-PROMPT
|
||||||
|
|
||||||
!./bin/emqx_ctl cluster status
|
!./bin/emqx_ctl cluster status
|
||||||
|
@ -91,11 +100,17 @@
|
||||||
?SH-PROMPT
|
?SH-PROMPT
|
||||||
|
|
||||||
[shell emqx2]
|
[shell emqx2]
|
||||||
!cp -f ../$PROFILE-ubuntu20.04-$VSN-amd64.zip releases/
|
!echo "" > log/emqx.log.1
|
||||||
!./bin/emqx install $VSN
|
|
||||||
?SH-PROMPT
|
?SH-PROMPT
|
||||||
!./bin/emqx versions |grep permanent | grep -oE "[0-9].[0-9].[0-9]"
|
|
||||||
?$VSN
|
!cp -f ../$PROFILE-ubuntu20.04-$VSN-amd64.zip releases/
|
||||||
|
|
||||||
|
!./bin/emqx install $VSN
|
||||||
|
?Made release permanent: "$VSN"
|
||||||
|
?SH-PROMPT
|
||||||
|
|
||||||
|
!./bin/emqx versions |grep permanent
|
||||||
|
?(.*)$VSN
|
||||||
?SH-PROMPT
|
?SH-PROMPT
|
||||||
|
|
||||||
!./bin/emqx_ctl cluster status
|
!./bin/emqx_ctl cluster status
|
||||||
|
|
|
@ -191,7 +191,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: hawk/lux
|
repository: hawk/lux
|
||||||
ref: lux-2.4
|
ref: lux-2.6
|
||||||
path: lux
|
path: lux
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -253,14 +253,15 @@ jobs:
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
- name: run relup test
|
- name: run relup test
|
||||||
|
timeout-minutes: 20
|
||||||
run: |
|
run: |
|
||||||
set -e -x -u
|
set -e -x -u
|
||||||
if [ -n "$OLD_VSNS" ]; then
|
if [ -n "$OLD_VSNS" ]; then
|
||||||
mkdir -p packages
|
mkdir -p packages
|
||||||
cp emqx/_packages/${PROFILE}/*.zip packages
|
cp emqx/_packages/${PROFILE}/*.zip packages
|
||||||
cp emqx/_upgrade_base/*.zip packages
|
cp emqx/_upgrade_base/*.zip packages
|
||||||
lux -v \
|
lux \
|
||||||
--timeout 600000 \
|
--case_timeout infinity \
|
||||||
--var PROFILE=$PROFILE \
|
--var PROFILE=$PROFILE \
|
||||||
--var PACKAGE_PATH=$(pwd)/packages \
|
--var PACKAGE_PATH=$(pwd)/packages \
|
||||||
--var BENCH_PATH=$(pwd)/emqtt-bench \
|
--var BENCH_PATH=$(pwd)/emqtt-bench \
|
||||||
|
@ -275,5 +276,3 @@ jobs:
|
||||||
name: lux_logs
|
name: lux_logs
|
||||||
path: lux_logs
|
path: lux_logs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
remote="refs/remote/$(git remote -v | grep fetch | grep 'emqx/emqx' | awk '{print $1}')"
|
latest_release=$(git describe --abbrev=0 --tags)
|
||||||
latest_release=$(git describe --tags "$(git rev-list --tags --max-count=1 --remotes="$remote")")
|
|
||||||
|
|
||||||
bad_app_count=0
|
bad_app_count=0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue