From 685443be04ad9e851d06dcd19adc98aa57edc234 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Wed, 21 Jan 2015 09:24:10 +0100 Subject: [PATCH] added coverty scan to travis.yml --- .travis.yml | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index cf60786..f2f33d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,12 @@ compiler: - gcc env: global: - -PKG_CONFIG_PATH=/tmp/install/lib/pkgconfig - -PREFIX=/tmp/install - -PYTHONPATH=$PYTHONPATH:$PREFIX/lib/python2.7/site-packages/ + - PKG_CONFIG_PATH=/tmp/install/lib/pkgconfig + - PREFIX=/tmp/install + - PYTHONPATH=$PYTHONPATH:$PREFIX/lib/python2.7/site-packages/ + # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created + # via the "travis encrypt" command using the project repo's public key + - secure: "M+eNZPASDoFdWZUeSyu4whvPKaOwd0AlCmGWKc7SRbQPD8x8Ao8y3+kr++YonsWBnDUqQSNg3v4uWsJOo2Q57qMQ+FYcNlEjrYpXXSRdH4BnYnTH1WfNnTce7N5Bln9wxE+khe7cZJcxy+gvd+YiutQvHjT+bTzrs2MtHD0Odlw=" script: # Build libnpa, which requires OpenPACE and OpenSC - cd /tmp && git clone https://github.com/frankmorgner/openpace && cd openpace && autoreconf -vsi && ./configure --enable-openssl-install --enable-python --prefix=$PREFIX && make install && cd $TRAVIS_BUILD_DIR @@ -21,3 +24,27 @@ script: - cd pcsc-relay && autoreconf -vsi && ./configure && make && cd .. # Build ccid - cd ccid && autoreconf -vsi && ./configure OPENSSL_CFLAGS="-I$PREFIX/include" OPENSSL_LIBS="-L$PREFIX/lib -lcrypto" OPENSC_LIBS="-L$PREFIX/lib -lopensc" && make + +addons: + coverity_scan: + project: + name: "frankmorgner/vsmartcard" + description: "" + notification_email: morgner@informatik.hu-berlin.de + build_command_prepend: + # Build libnpa, which requires OpenPACE and OpenSC + - cd /tmp && git clone https://github.com/frankmorgner/openpace && cd openpace && autoreconf -vsi && ./configure --enable-openssl-install --enable-python --prefix=$PREFIX && make install && cd $TRAVIS_BUILD_DIR + - cd npa/src/opensc && autoreconf -vsi && ./configure --prefix=$PREFIX --enable-sm && make install && cd ../../.. + - cd npa && autoreconf -vsi && ./configure OPENSC_LIBS="-L$PREFIX/lib -lopensc -lcrypto" && cd .. + #Build virtualsmartcard + - cd virtualsmartcard && autoreconf -vsi && ./configure + # Build pcsc-relay, which requires libnfc + - cd /tmp && git clone https://code.google.com/p/libnfc && cd libnfc && autoreconf -i && ./configure --prefix=$PREFIX && cd $TRAVIS_BUILD_DIR + - cd pcsc-relay && autoreconf -vsi && ./configure && cd .. + # Build ccid + - cd ccid && autoreconf -vsi && ./configure OPENSSL_CFLAGS="-I$PREFIX/include" OPENSSL_LIBS="-L$PREFIX/lib -lcrypto" OPENSC_LIBS="-L$PREFIX/lib -lopensc" && cd .. + build_command: + - make -C npa + - make -C virtualsmartcard + - make -C pcsc-relay + branch_pattern: coverity_scan