Ilya Shipitsin | 64b6f36 | 2020-12-25 23:36:52 +0500 | [diff] [blame] | 1 | |
| 2 | # |
| 3 | # scan results: https://scan.coverity.com/projects/haproxy |
| 4 | # |
| 5 | |
| 6 | name: Coverity |
| 7 | |
| 8 | on: |
| 9 | schedule: |
| 10 | - cron: "0 0 * * *" |
| 11 | |
| 12 | jobs: |
| 13 | scan: |
| 14 | runs-on: ubuntu-latest |
| 15 | if: ${{ github.repository_owner == 'haproxy' }} |
| 16 | env: |
| 17 | COVERITY_SCAN_PROJECT_NAME: 'Haproxy' |
| 18 | COVERITY_SCAN_BRANCH_PATTERN: '*' |
| 19 | COVERITY_SCAN_NOTIFICATION_EMAIL: 'chipitsine@gmail.com' |
Willy Tarreau | 57610c6 | 2021-04-02 16:39:44 +0200 | [diff] [blame] | 20 | COVERITY_SCAN_BUILD_COMMAND: "make CC=clang TARGET=linux-glibc USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=addons/wurfl/dummy WURFL_LIB=addons/wurfl/dummy USE_DEVICEATLAS=1 DEVICEATLAS_SRC=addons/deviceatlas/dummy USE_51DEGREES=1 51DEGREES_SRC=addons/51degrees/dummy/pattern" |
Ilya Shipitsin | 64b6f36 | 2020-12-25 23:36:52 +0500 | [diff] [blame] | 21 | steps: |
| 22 | - uses: actions/checkout@v2 |
| 23 | - name: Install apt dependencies |
| 24 | run: | |
| 25 | sudo apt-get update |
| 26 | sudo apt-get install -y \ |
| 27 | liblua5.3-dev \ |
| 28 | libsystemd-dev |
Tim Duesterhus | 66d28e7 | 2021-01-28 18:58:53 +0100 | [diff] [blame] | 29 | - name: Hijack Makefile |
| 30 | run: | |
| 31 | # We cannot pass the DEBUG variable in `COVERITY_SCAN_BUILD_COMMAND`, |
| 32 | # because Coverity splits parameters at whitespaces, without taking |
| 33 | # quoting into account. |
| 34 | sed -i 's/^DEBUG =$/DEBUG = -DDEBUG_STRICT=1 -DDEBUG_USE_ABORT=1/' Makefile |
| 35 | - name: Build WURFL |
Willy Tarreau | 57610c6 | 2021-04-02 16:39:44 +0200 | [diff] [blame] | 36 | run: make -C addons/wurfl/dummy |
Ilya Shipitsin | 64b6f36 | 2020-12-25 23:36:52 +0500 | [diff] [blame] | 37 | - name: Run Coverity Scan |
| 38 | env: |
| 39 | COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |
| 40 | run: | |
Ilya Shipitsin | 64b6f36 | 2020-12-25 23:36:52 +0500 | [diff] [blame] | 41 | curl -fsSL "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true |