|
38 | 38 | with: |
39 | 39 | path: .ejabberd-modules/sources/ejabberd-contrib |
40 | 40 |
|
| 41 | + - name: Get compatible Rebar3 binary when OTP 24 |
| 42 | + if: matrix.elixir < '1.14' |
| 43 | + run: | |
| 44 | + rm rebar3 |
| 45 | + wget https://github.com/processone/ejabberd/raw/24.12/rebar3 |
| 46 | + chmod +x rebar3 |
| 47 | +
|
41 | 48 | - name: Prepare libraries |
42 | 49 | run: | |
43 | 50 | apt-get -qq update |
@@ -106,6 +113,18 @@ jobs: |
106 | 113 | - name: Disable mod_muc_webchat_url testing (requires mod_conversejs) |
107 | 114 | run: sed -i '/mod_muc_webchat_url/d' modules_available.txt |
108 | 115 |
|
| 116 | + - name: Disable mod_prometheus testing with OTP < 26 |
| 117 | + if: matrix.elixir < '1.14' |
| 118 | + run: sed -i '/mod_prometheus/d' modules_available.txt |
| 119 | + |
| 120 | + - name: Add prometheus dependency only with OTP >= 26 |
| 121 | + if: matrix.elixir > '1.13' |
| 122 | + run: | |
| 123 | + sed -i 's|{deps, \[|{deps, \[ \ |
| 124 | + {quantile_estimator, "1.0.2", {git, "https://github.com/odo/quantile_estimator", {branch, "master"}}}, \ |
| 125 | + {prometheus, "5.0.0", {git, "https://github.com/prometheus-erl/prometheus.erl", {branch, "master"}}}, \ |
| 126 | + |g' rebar.config |
| 127 | +
|
109 | 128 | - name: Disable mod_s3_upload testing with old OTP |
110 | 129 | if: matrix.elixir < '1.16' |
111 | 130 | run: sed -i '/mod_s3_upload/d' modules_available.txt |
@@ -145,8 +164,6 @@ jobs: |
145 | 164 | {ecaptcha, ".*", {git, "https://github.com/seriyps/ecaptcha", {branch, "master"}}}, \ |
146 | 165 | {fusco, "0.1.1", {git, "https://github.com/esl/fusco", {branch, "master"}}}, \ |
147 | 166 | {observer_cli, "1.8.3", {git, "https://github.com/zhongwencool/observer_cli", {branch, "main"}}}, \ |
148 | | - {prometheus, "5.0.0", {git, "https://github.com/prometheus-erl/prometheus.erl", {branch, "master"}}}, \ |
149 | | - {quantile_estimator, "1.0.2", {git, "https://github.com/odo/quantile_estimator", {branch, "master"}}}, \ |
150 | 167 | {recon, "2.5.6", {git, "https://github.com/ferd/recon", {branch, "master"}}}, \ |
151 | 168 | |g' rebar.config |
152 | 169 | sed -i 's|stdlib, |stdlib, cuesport, ecaptcha, fusco, observer_cli, prometheus, recon, |g' rebar.config |
|
0 commit comments