diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-02-02 16:29:57 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-06-19 15:03:52 +1000 |
commit | 630feb5c527187d236b90f672df9ef0d8bdb116c (patch) | |
tree | 14bdd969d571757cb57d7a8956cb49f0fe7fdbb9 | |
parent | e8ba2135132e2001c943b9a26ed426d0a3deb36a (diff) | |
download | skiboot-coverity_scan.zip skiboot-coverity_scan.tar.gz skiboot-coverity_scan.tar.bz2 |
add Coverity .travis.ymlcoverity_scan
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | .travis.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4076a20 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,39 @@ +language: c +compiler: + - gcc +RUN if [ `arch` = "x86_64" ]; then wget https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.1.0/x86_64-gcc-8.1.0-nolibc-powerpc64-linux.tar.xz; tar -C /opt/cross -xf x86_64-gcc-8.1.0-nolibc-powerpc64-linux.tar.xz; fi + +env: + global: + - CROSS=/opt/cross/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- + - HOSTCC=gcc-4.8 + # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created + # via the "travis encrypt" command using the project repo's public key + - secure: "MpNEGFa1VrF/vsQq24n5UgfRbz1wVC6B8mubFnyK4gX0IuQ9xhWuTzMLUQF9UJxe5jnC2DTmVUvYTYN/hggw+PpYwbOOAE0QGR5pmPHA4PSRmc5pxt1q18/sv7EPFw66GFyWJq94nWjpigyKQ8KGtA67j1xFqrDoS43OA76WZgo=" + +sudo: required +dist: trusty + +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-certificates.crt + - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && + sudo apt-get update -qq && + sudo apt-get install -y gcc-4.8 libstdc++6 valgrind expect xterm && + sudo apt-get install -y gcc-arm-linux-gnueabi gcc device-tree-compiler && + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50 && + wget https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.1.0/x86_64-gcc-8.1.0-nolibc-powerpc64-linux.tar.xz && + sudo mkdir /opt/cross && + sudo tar -C /opt/cross -xvf x86_64-gcc-8.1.0-nolibc-powerpc64-linux.tar.xz + +script: + - echo 'Coverity build' + +addons: + coverity_scan: + project: + name: "open-power/skiboot" + description: "Build submitted via Travis CI" + notification_email: stewart@linux.vnet.ibm.com + build_command_prepend: "cov-configure --comptype gcc --compiler powerpc64-linux-gcc --template; cov-configure --comptype gcc --compiler powerpc64le-linux-gnu-gcc; cov-configure --comptype gcc --compiler arm-linux-gnueabi-gcc; cov-configure --comptype gcc --compiler x86_64-linux-gnu-gcc" + build_command: "make -j4 all check" + branch_pattern: coverity_scan |