From 2a43c6836564201cec82952de0583e6d29707b98 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Wed, 6 Sep 2017 22:13:27 +0200 Subject: [PATCH] Travis: add coverity --- .travis.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 905796b..fa9e100 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,15 +13,27 @@ env: - DB_PASS=secret2 - DB_PORT=8081 - ULOGGER_URL="http://127.0.0.1:8080" + - secure: "fajUnR8y0+EkMLHTpDpqEsNc2UWSNQchy9Vw6bP+AVEdLnU2tdc9ZTrWfHx+vQdvo6xd/eY6TJm4cWtesG8inFhZHSzPYeeWX8xDto+fPohjTBJggvkGmhO6xYidjwTL2niKsHOVPh0ja55eCzp/DYWX/jVUNWTFsFiLwOlrZrhhoZs3JNldiPOUAgroR5SvlW1TZ1MgWO0ZLXpjpRhG3w42pRM75pzGpfwnjeA6BYCO8j/NXCiuCo9YTTGR/zM5yfYuTIxviIVcRw2Y6SQrh/nzQw3bCB7y9PvtDt/eNAzJVO8GQOQeN7cgY4kU/NMMlIxwL1nUDyaZj1+KxZj3BsG/pPxJblAE28yDdFlpTeolHuFDZpOXvbD8EnUYjk+NXUDe73tYPZT/iiojMBJ4ja+SCnq8VYvATjOHiAqDmlrrEWWwBC+i2laFSVBMJROvg+Ga85vmyV6/nvSd0fRJzrGLyeyGqSBwbGk2lS8HXPcDc5Bfn6v9sP0Sks7xXvW9A6zc262GRcSZqlvmUpbp7VteJigFNv3t3vjJRNlspvpzpPqHGKDJ3UCgt2i7+ve8zqFfevDUiDBKkMEPhIQdXPtqhzHMq4GXMDpGwq9DWcR0m/ZQISfS2K1ONnpv+4ShkGaFFk7o435GcIkitMAxRvpcA4m92l0POuqAbrXPaUU=" services: - docker before_install: + - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- - docker build -t ulogger . - docker run -d --name ulogger -p 8080:80 -p 8081:3306 --expose 3306 ulogger - composer install - until netstat -atn 2>/dev/null | grep '8080.*LISTEN'; do sleep 1; done script: - - ./vendor/bin/phpunit -c .tests/phpunit.xml \ No newline at end of file + - ./vendor/bin/phpunit -c .tests/phpunit.xml + +addons: + coverity_scan: + project: + name: "bfabiszewski/ulogger-server" + description: "Build submitted via Travis CI" + notification_email: scan.coverity@fabiszewski.net + build_command_prepend: "" + build_command: "cov-build --dir cov-int --no-command --fs-capture-search ./ --fs-capture-search-exclude-regex vendor/ --fs-capture-search-exclude-regex .tests/ --fs-capture-search-exclude-regex config.php --fs-capture-search-exclude-regex .docker/" + branch_pattern: master \ No newline at end of file