diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2021-03-12 17:52:16 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2021-03-24 18:31:11 +1000 |
commit | 1f085af02cc80fa0cb62eb81a49dcb00917b9d30 (patch) | |
tree | 472983232cbd7b1f2f654cdf54d889087910cb67 /.github/workflows/coveralls.yml | |
parent | c08138e500ed27c6aa3db98194bd04c400213db3 (diff) |
Add coveralls to CI
Fixes #14013
Coverage reports were no longer generated when travis stopped being used.
This github action workflow schedules a coverage report once a week.
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14526)
Diffstat (limited to '.github/workflows/coveralls.yml')
-rw-r--r-- | .github/workflows/coveralls.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml new file mode 100644 index 0000000000..370f372ad3 --- /dev/null +++ b/.github/workflows/coveralls.yml @@ -0,0 +1,28 @@ +name: Coverage + +#Run once a week +on: + schedule: + - cron: '0 0 * * SAT' + +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: package installs + run: | + sudo apt-get -yq install lcov + - name: config + run: CC=gcc ./config --debug --coverage no-asm enable-rc5 enable-md2 enable-ssl3 enable-nextprotoneg enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 no-shared enable-buildtest-c++ enable-external-tests -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION && perl configdata.pm --dump + - name: make + run: make -s -j4 + - name: make test + run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} + - name: generate coverage info + run: lcov -d . -c -o ./lcov.info + - name: Coveralls upload + uses: coverallsapp/github-action@v1.1.2 + with: + github-token: ${{ secrets.github_token }} + path-to-lcov: ./lcov.info |