diff options
-rw-r--r-- | .github/workflows/macos.yml | 20 | ||||
-rw-r--r-- | .github/workflows/mingw.yml | 20 | ||||
-rw-r--r-- | .github/workflows/mjit.yml | 20 | ||||
-rw-r--r-- | .github/workflows/ubuntu.yml | 20 | ||||
-rw-r--r-- | .github/workflows/windows.yml | 20 | ||||
-rw-r--r-- | .travis.yml | 9 | ||||
-rw-r--r-- | appveyor.yml | 23 |
7 files changed, 17 insertions, 115 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 9970299c54..83ee14dc58 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -57,26 +57,12 @@ jobs: with: payload: | { - "attachments": [{ - "text": "${{ github.workflow }} / ${{ matrix.test_task }} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + - "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - # New Slack notification (experimental) - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { "ci": "GitHub Actions", "env": "${{ github.workflow }} / ${{ matrix.test_task }}", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "commit": "${{ github.sha }}" + "commit": "${{ github.sha }}", + "branch": "${{ github.ref }}".split('/').reverse()[0] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index 38432df7ea..a29d4c717b 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -142,26 +142,12 @@ jobs: with: payload: | { - "attachments": [{ - "text": "${{ github.workflow }} / ${{ matrix.test_task }} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + - "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - # New Slack notification (experimental) - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { "ci": "GitHub Actions", "env": "${{ github.workflow }} / ${{ matrix.test_task }}", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "commit": "${{ github.sha }}" + "commit": "${{ github.sha }}", + "branch": "${{ github.ref }}".split('/').reverse()[0] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 0bd2f347df..4814ae1b0f 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -58,26 +58,12 @@ jobs: with: payload: | { - "attachments": [{ - "text": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.jit_opts }} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + - "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - # New Slack notification (experimental) - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { "ci": "GitHub Actions", "env": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.jit_opts }}", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "commit": "${{ github.sha }}" + "commit": "${{ github.sha }}", + "branch": "${{ github.ref }}".split('/').reverse()[0] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 9b4237d967..4f50216569 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -71,26 +71,12 @@ jobs: with: payload: | { - "attachments": [{ - "text": "${{ matrix.os }} / ${{ matrix.test_task }} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + - "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - # New Slack notification (experimental) - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { "ci": "GitHub Actions", "env": "${{ matrix.os }} / ${{ matrix.test_task }}", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "commit": "${{ github.sha }}" + "commit": "${{ github.sha }}", + "branch": "${{ github.ref }}".split('/').reverse()[0] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index fdac90ca8f..f786913547 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -74,26 +74,12 @@ jobs: with: payload: | { - "attachments": [{ - "text": "${{ matrix.os }} / ${{ matrix.test_task }} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + - "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - # New Slack notification (experimental) - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { "ci": "GitHub Actions", "env": "${{ matrix.os }} / ${{ matrix.test_task }}", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "commit": "${{ github.sha }}" + "commit": "${{ github.sha }}", + "branch": "${{ github.ref }}".split('/').reverse()[0] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' diff --git a/.travis.yml b/.travis.yml index 7df92bc54f..5db134a90c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -532,16 +532,9 @@ notifications: template: - "%{message} by @%{author}: See %{build_url}" - slack: - rooms: - - secure: ah7UEHBvncXT7bM5mvYIQAO+tIyV/wl7nXLb7wQD16dO2v8Gragy0mWjB79Q09hrrMGmp6H9bCDpdGS80boIA5EHaHoG4QaP0i9bsSt8U2AMWgZtfyIgQKJ4H2kXkGlrjO+AXTgnIkP7LNjdgAVUUTGQPb26T3QmoN2Splt+fIQ= # ruby:<token>#alerts - on_pull_requests: false - on_success: never - on_failure: always - webhooks: urls: - - secure: mRsoS/UbqDkKkW5p3AEqM27d4SZnV6Gsylo3bm8T/deltQzTsGzZwrm7OIBXZv0UFZdE68XmPlyHfZFLSP2V9QZ7apXMf9/vw0GtcSe1gchtnjpAPF6lYBn7nMCbVPPx9cS0dwL927fjdRM1vj7IKZ2bk4F0lAJ25R25S6teqdk= # simpler alerts (travis) + - secure: mRsoS/UbqDkKkW5p3AEqM27d4SZnV6Gsylo3bm8T/deltQzTsGzZwrm7OIBXZv0UFZdE68XmPlyHfZFLSP2V9QZ7apXMf9/vw0GtcSe1gchtnjpAPF6lYBn7nMCbVPPx9cS0dwL927fjdRM1vj7IKZ2bk4F0lAJ25R25S6teqdk= # ruby-lang slack: ruby/simpler-alerts-bot (travis) on_pull_requests: false on_success: never on_failure: always diff --git a/appveyor.yml b/appveyor.yml index 711c52693b..2acfff27ed 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -72,31 +72,10 @@ for: - nmake -l "TESTOPTS=-v --timeout-scale=3.0 --excludes=../test/excludes/_appveyor" test-all TESTS="../test/win32ole ../test/ruby/test_bignum.rb ../test/ruby/test_syntax.rb ../test/open-uri/test_open-uri.rb ../test/rubygems/test_bundled_ca.rb" - nmake -l test-spec MSPECOPT=-fs # not using `-j` because sometimes `mspec -j` silently dies on Windows notifications: - # Using "Webhook" with templated body to skip notification on Pull Request - provider: Webhook method: POST url: - secure: iMINHMS0nZabaDsxN9omRDsekxzVvAAzEq5ev7lN6vb+gUETT+rbDKLGxBxBpEpxlnPlLdzroIJ+DTKlwfJA8VkGawTn9EXNsucH0OkSf2M= # AppVeyor CI - body: >- - {{^isPullRequest}} - { - "attachments": [ - { - "text": "Build <{{buildUrl}}|#{{buildVersion}}> (<{{commitUrl}}|{{commitId}}>) of {{repositoryName}}@{{branch}} by {{commitAuthor}} {{status}}", - "color": "{{#passed}}good{{/passed}}{{#failed}}danger{{/failed}}" - } - ], - "channel": "#alerts" - } - {{/isPullRequest}} - on_build_success: false - on_build_failure: true - on_build_status_changed: false - # New Slack notification (experimental) - - provider: Webhook - method: POST - url: - secure: CcFlJNDJ/a6to7u3Z4Fnz6dScEPNx7hTha2GkSRlV+1U6dqmxY/7uBcLXYb9gR3jfQk6w+2o/HrjNAyXMNGU/JOka3s2WRI4VKitzM+lQ08owvJIh0R7LxrGH0J2e81U # simpler alerts + secure: CcFlJNDJ/a6to7u3Z4Fnz6dScEPNx7hTha2GkSRlV+1U6dqmxY/7uBcLXYb9gR3jfQk6w+2o/HrjNAyXMNGU/JOka3s2WRI4VKitzM+lQ08owvJIh0R7LxrGH0J2e81U # ruby-lang slack: ruby/simpler-alerts-bot body: >- {{^isPullRequest}} { |