1 Star 0 Fork 1

dgiot开源社区 / dgiot_ffmpeg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rebar.config.script 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
lsxredrain 提交于 2021-08-12 13:27 . first commit
CONFIG1 = case os:getenv("TRAVIS") of
"true" ->
JobId = os:getenv("TRAVIS_JOB_ID"),
[{coveralls_service_job_id, JobId},
{coveralls_coverdata, "_build/test/cover/*.coverdata"},
{coveralls_service_name , "travis-ci"} | CONFIG];
_ ->
CONFIG
end,
CUR_BRANCH = os:cmd("git branch | grep -e '^*' | cut -d' ' -f 2") -- "\n",
MATCH_BRANCH = fun (BranchName) when BranchName =:= "master";
BranchName =:= "develop" ->
BranchName;
(BranchName) ->
case string:prefix(BranchName, "release") of
nomatch -> "develop";
_Match -> BranchName
end
end,
BRANCH = MATCH_BRANCH(CUR_BRANCH),
DEPS = case lists:keyfind(deps, 1, CONFIG1) of
{_, Deps} -> Deps;
_ -> []
end,
UrlPrefix = "https://github.com/emqx/",
EMQX = {emqx, {git, UrlPrefix ++ "emqx", {branch, BRANCH}}},
EMQX_RULE_ENGINE = {emqx_rule_engine, {git, UrlPrefix ++ "emqx-rule-engine", {branch, BRANCH}}},
NewDeps = [EMQX, EMQX_RULE_ENGINE | DEPS],
CONFIG2 = lists:keystore(deps, 1, CONFIG1, {deps, NewDeps}),
CONFIG2.
1
https://gitee.com/dgiiot/dgiot_ffmpeg.git
git@gitee.com:dgiiot/dgiot_ffmpeg.git
dgiiot
dgiot_ffmpeg
dgiot_ffmpeg
master

搜索帮助