<?php
}
+function steps_notify() {
+?>
+ - name: Notify Gitter (success)
+ if: ${{ success() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=info" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [success](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})"
+ - name: Notify Gitter (failure)
+ if: ${{ failure() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=error" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [failure](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})"
+<?php
+}
+
function steps($splat_map = null) {
steps_setenv($splat_map);
steps_getdeps();
steps_build();
+ steps_notify();
}
function defaults() {
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
+ - name: Notify Gitter (success)
+ if: ${{ success() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=info" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [success](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})"
+ - name: Notify Gitter (failure)
+ if: ${{ failure() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=error" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [failure](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})"
- uses: codecov/codecov-action@v1.0.13
# sanitizer build
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
+ - name: Notify Gitter (success)
+ if: ${{ success() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=info" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [success](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})"
+ - name: Notify Gitter (failure)
+ if: ${{ failure() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=error" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [failure](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})"
# mac build
dbg-mac:
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
+ - name: Notify Gitter (success)
+ if: ${{ success() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=info" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [success](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})"
+ - name: Notify Gitter (failure)
+ if: ${{ failure() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=error" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [failure](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})"
- uses: codecov/codecov-action@v1.0.13
# release builds
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
+ - name: Notify Gitter (success)
+ if: ${{ success() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=info" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [success](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})"
+ - name: Notify Gitter (failure)
+ if: ${{ failure() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=error" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [failure](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})"