coveralls.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License 2.0 (the "License"). You may not use
  4. # this file except in compliance with the License. You can obtain a copy
  5. # in the file LICENSE in the source distribution or at
  6. # https://www.openssl.org/source/license.html
  7. name: Coverage
  8. #Run once a day
  9. on:
  10. schedule:
  11. - cron: '49 0 * * *'
  12. permissions:
  13. contents: read
  14. jobs:
  15. coverage:
  16. permissions:
  17. checks: write # for coverallsapp/github-action to create new checks
  18. contents: read # for actions/checkout to fetch code
  19. runs-on: ubuntu-latest
  20. steps:
  21. - uses: actions/checkout@v2
  22. with:
  23. submodules: recursive
  24. - name: package installs
  25. run: |
  26. sudo apt-get update
  27. sudo apt-get -yq install lcov
  28. sudo apt-get -yq install bison gettext keyutils ldap-utils libldap2-dev libkeyutils-dev python3 python3-paste python3-pyrad slapd tcsh python3-virtualenv virtualenv python3-kdcproxy
  29. - name: install cpanm and Test2::V0 for gost_engine testing
  30. uses: perl-actions/install-with-cpanm@v1
  31. with:
  32. install: Test2::V0
  33. - name: setup hostname workaround
  34. run: sudo hostname localhost
  35. - name: config
  36. run: CC=gcc ./config --banner=Configured --debug --coverage no-asm no-afalgeng enable-fips 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 enable-tfo enable-quic -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
  37. - name: config dump
  38. run: ./configdata.pm --dump
  39. - name: make
  40. run: make -s -j4
  41. - name: make test
  42. run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} TESTS='-test_external_krb5'
  43. - name: generate coverage info
  44. run: lcov -d . -c -o ./lcov.info
  45. - name: Coveralls upload
  46. uses: coverallsapp/github-action@v1.1.2
  47. with:
  48. github-token: ${{ secrets.github_token }}
  49. path-to-lcov: ./lcov.info