From 3738544080c93edd5d7240fb7dc2cf5fc1ebe71c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20G=C3=B6m=C3=B6ri?= Date: Wed, 27 Oct 2021 00:55:16 +0200 Subject: [PATCH 1/2] Bump coveralls plugin version --- rebar.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index 99328b5..e791afd 100644 --- a/rebar.config +++ b/rebar.config @@ -12,7 +12,7 @@ {profiles, [{test, [{deps, [ {meck, "0.8.12"} ]}, - {plugins, [ {coveralls, "1.3.0"} ]} + {plugins, [ {coveralls, "2.2.0"} ]} ]}, {test_jiffy, [{deps, [ jiffy ]} From 32ac436530c22223dfd30acfec2ee7a13e2a19d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20G=C3=B6m=C3=B6ri?= Date: Wed, 27 Oct 2021 01:38:03 +0200 Subject: [PATCH 2/2] TMP --- .github/workflows/ci.yml | 277 ++++++++++++++++++++------------------- rebar.config.script | 8 +- 2 files changed, 146 insertions(+), 139 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 835841b..76a9fe4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,14 @@ jobs: fail-fast: false matrix: include: - - otp_version: 23 - elixir_version: 1.10.3 - new_rebar: true - # hdr_histogram up to 0.4.0 fails to compile with OTP 23 - erl_hist: true - - - otp_version: 22 - new_rebar: true +# - otp_version: 23 +# elixir_version: 1.10.3 +# new_rebar: true +# # hdr_histogram up to 0.4.0 fails to compile with OTP 23 +# erl_hist: true +# +# - otp_version: 22 +# new_rebar: true - otp_version: 21 new_rebar: true @@ -32,19 +32,19 @@ jobs: run_dialyzer: true build_docs: true - - otp_version: 20 - - - otp_version: 19 - - - otp_version: 19 - erl_hist: true - - - otp_version: 18 - old_cowboy: true - - - otp_version: 17 - run_dialyzer: true - old_cowboy: true +# - otp_version: 20 +# +# - otp_version: 19 +# +# - otp_version: 19 +# erl_hist: true +# +# - otp_version: 18 +# old_cowboy: true +# +# - otp_version: 17 +# run_dialyzer: true +# old_cowboy: true steps: - uses: actions/checkout@v2 @@ -79,120 +79,121 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} continue-on-error: true - test_jiffy: - name: Test different json lib (OTP ${{ matrix.otp_version }}) - runs-on: ubuntu-latest - - container: erlang:${{ matrix.otp_version }} - - strategy: - matrix: - include: - - otp_version: 21 - new_rebar: true - - - otp_version: 18 - old_cowboy: true - - steps: - - uses: actions/checkout@v2 - - - if: matrix.new_rebar - run: curl -O -L https://github.com/erlang/rebar3/releases/download/3.15.2/rebar3 && chmod +x ./rebar3 - - - if: matrix.old_cowboy - run: echo "COWBOY_VERSION=1.1.2" >> $GITHUB_ENV - - - name: Cache hex packages - uses: actions/cache@v2 - with: - path: $HOME/.cache/rebar3 - key: ${{ matrix.otp_version }}-rebar3-cache-jiffy - - - run: make test_jiffy - - test_elixir: - name: Test with Elixir (Elixir ${{matrix.elixir}} | OTP ${{matrix.otp_version}}) - runs-on: ubuntu-18.04 - strategy: - fail-fast: false - matrix: - include: - - elixir: 1.4.x - otp_version: 18 - old_cowboy: true - - - elixir: 1.5.x - otp_version: 18 - old_cowboy: true - - - elixir: 1.6.x - otp_version: 19 - - - elixir: 1.7.x - otp_version: 19 - - - elixir: 1.8.x - otp_version: 20 - - - elixir: 1.9.x - otp_version: 20 - - - elixir: 1.10.x - otp_version: 21 - new_rebar: true - - - elixir: 1.11.x - otp_version: 22 - new_rebar: true - - - elixir: 1.12.x - otp_version: 23 - new_rebar: true - # hdr_histogram up to 0.4.0 fails to compile with OTP 23 - erl_hist: true - - - steps: - - uses: actions/checkout@v2 - - uses: erlef/setup-beam@v1 - with: - otp-version: ${{matrix.otp_version}} - elixir-version: ${{matrix.elixir}} - - if: matrix.new_rebar - run: curl -O -L https://github.com/erlang/rebar3/releases/download/3.15.2/rebar3 && chmod +x ./rebar3 - - - if: matrix.erl_hist - run: echo "XPROF_ERL_HIST=true" >> $GITHUB_ENV - - - if: matrix.old_cowboy - run: echo "COWBOY_VERSION=1.1.2" >> $GITHUB_ENV - - - name: Cache hex packages - uses: actions/cache@v2 - with: - path: $HOME/.cache/rebar3 - key: ${{ matrix.otp_version }}-rebar3-cache - - - run: make test - - test_front_end: - name: Test front-end - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-node@v1 - with: - node-version: '8' - - - name: Cache build artifacts - uses: actions/cache@v2 - with: - path: apps/xprof_gui/priv/node_modules - key: test_front_end - - - run: make bootstrap_front_end - - - run: make test_front_end +# test_jiffy: +# name: Test different json lib (OTP ${{ matrix.otp_version }}) +# runs-on: ubuntu-latest +# +# container: erlang:${{ matrix.otp_version }} +# +# strategy: +# matrix: +# include: +# - otp_version: 21 +# new_rebar: true +# +# - otp_version: 18 +# old_cowboy: true +# +# steps: +# - uses: actions/checkout@v2 +# +# - if: matrix.new_rebar +# run: curl -O -L https://github.com/erlang/rebar3/releases/download/3.15.2/rebar3 && chmod +x ./rebar3 +# +# - if: matrix.old_cowboy +# run: echo "COWBOY_VERSION=1.1.2" >> $GITHUB_ENV +# +# - name: Cache hex packages +# uses: actions/cache@v2 +# with: +# path: $HOME/.cache/rebar3 +# key: ${{ matrix.otp_version }}-rebar3-cache-jiffy +# +# - run: make test_jiffy +# +# test_elixir: +# name: Test with Elixir (Elixir ${{matrix.elixir}} | OTP ${{matrix.otp_version}}) +# runs-on: ubuntu-18.04 +# strategy: +# fail-fast: false +# matrix: +# include: +# - elixir: 1.4.x +# otp_version: 18 +# old_cowboy: true +# +# - elixir: 1.5.x +# otp_version: 18 +# old_cowboy: true +# +# - elixir: 1.6.x +# otp_version: 19 +# +# - elixir: 1.7.x +# otp_version: 19 +# +# - elixir: 1.8.x +# otp_version: 20 +# +# - elixir: 1.9.x +# otp_version: 20 +# +# - elixir: 1.10.x +# otp_version: 21 +# new_rebar: true +# +# - elixir: 1.11.x +# otp_version: 22 +# new_rebar: true +# +# - elixir: 1.12.x +# otp_version: 23 +# new_rebar: true +# # hdr_histogram up to 0.4.0 fails to compile with OTP 23 +# erl_hist: true +# +# +# steps: +# - uses: actions/checkout@v2 +# - uses: erlef/setup-beam@v1 +# with: +# otp-version: ${{matrix.otp_version}} +# elixir-version: ${{matrix.elixir}} +# - if: matrix.new_rebar +# run: curl -O -L https://github.com/erlang/rebar3/releases/download/3.15.2/rebar3 && chmod +x ./rebar3 +# +# - if: matrix.erl_hist +# run: echo "XPROF_ERL_HIST=true" >> $GITHUB_ENV +# +# - if: matrix.old_cowboy +# run: echo "COWBOY_VERSION=1.1.2" >> $GITHUB_ENV +# +# - name: Cache hex packages +# uses: actions/cache@v2 +# with: +# path: $HOME/.cache/rebar3 +# key: ${{ matrix.otp_version }}-rebar3-cache +# +# - run: make test +# +# test_front_end: +# name: Test front-end +# runs-on: ubuntu-latest +# +# steps: +# - uses: actions/checkout@v2 +# +# - uses: actions/setup-node@v1 +# with: +# node-version: '8' +# +# - name: Cache build artifacts +# uses: actions/cache@v2 +# with: +# path: apps/xprof_gui/priv/node_modules +# key: test_front_end +# +# - run: make bootstrap_front_end +# +# - run: make test_front_end +# diff --git a/rebar.config.script b/rebar.config.script index 1f2f16e..7e31bb1 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -37,4 +37,10 @@ GithubActions = end end. -GithubActions(Travis(CONFIG)). +PrintConfig = + fun(Config) -> + io:format(user, "CONFIG ~p~n", [[case X of {coveralls_repo_token, _} -> {coveralls_repo_token, "xxx"}; _ -> X end || X <- Config]]), + Config + end. + +PrintConfig(GithubActions(Travis(CONFIG))).