The compile flag was introduced in EQM X 4.3 series where CE and EE code was diverged large enough which made non-practicle to determin edition at runtime. such approach made testing quite challenging as we'll have to build with different compile flags inorder to run per-edition test cases In this commit, we try to retrieve edition info from EMQX's description text, (put to PT for fast access) at runtime so we can test ALL editions from a super-set edition (EE).
15 lines
332 B
Bash
Executable File
15 lines
332 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
url="$2"
|
|
|
|
# we keep this to secure OLD private repo
|
|
# even after we have disclosed new code under EMQ BSL 1.0
|
|
if [ -f 'EMQX_ENTERPRISE' ]; then
|
|
if [[ "$url" != *emqx-enterprise* ]]; then
|
|
echo "$(tput setaf 1)error: enterprise_code_to_non_enterprise_repo"
|
|
exit 1
|
|
fi
|
|
fi
|