Attempt to integrate static analysis

This commit is contained in:
vit9696 2018-11-12 11:06:44 +03:00
parent 8932aebc02
commit 3e1afd1e00
3 changed files with 58 additions and 28 deletions

View File

@ -1,4 +1,9 @@
language: cpp language: cpp
env:
global:
secure: "cWSx7cf7dOyGzqY12imfKIF0G0ImcjChHLpWuDU4dfSl+BvPh8WURhQqwpPihFzA4j+Ob9IdgJdEINW4ZKs5Fqt9NqpqTbsGlv7xMeGSNMymlwzwrY63CU8td6z/ju8Tgvi9I7aHtrYCbi4RCw2vPRzBihgwXTzQg6LWFoVT+XQ="
matrix: matrix:
include: include:
- os: osx - os: osx
@ -50,3 +55,24 @@ matrix:
secure: "WjYd93lVLKHULBpUXS/WtGrkdXyAwxHOUnLJotyDmQipAQP5Ox7Kj12JwkSJGEmVOEdcbIQJyi0QxPjn1UYbYsAt6Op8zrjnYLS4G4fMdBtcxprWzid85uTW7oAAIFs7ygMVhpzxRKpu70yNb683vbThqNmaOu6RyG9aJOLtPAg=" secure: "WjYd93lVLKHULBpUXS/WtGrkdXyAwxHOUnLJotyDmQipAQP5Ox7Kj12JwkSJGEmVOEdcbIQJyi0QxPjn1UYbYsAt6Op8zrjnYLS4G4fMdBtcxprWzid85uTW7oAAIFs7ygMVhpzxRKpu70yNb683vbThqNmaOu6RyG9aJOLtPAg="
on: on:
tags: true tags: true
- os: linux
dist: trusty
compiler: clang
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq qt5-default qt5-qmake qtbase5-dev-tools cmake
script:
- echo "This script runs coverity..."
addons:
coverity_scan:
project:
name: "LongSoft/UEFITool"
description: "UEFITool"
notification_email: $NOTIFICATION_EMAIL
build_command_prepend: "NOBUILD=1 ./unixbuild.sh"
build_command: "PRECONFIGURED=1 ./unixbuild.sh"
branch_pattern: new_engine

View File

@ -3,7 +3,7 @@
UEFITool is a viewer and editor of firmware images conforming to UEFI Platform Interface (PI) Specifications. UEFITool is a viewer and editor of firmware images conforming to UEFI Platform Interface (PI) Specifications.
![UEFITool icon](https://raw.githubusercontent.com/LongSoft/UEFITool/new_engine/UEFITool/icons/uefitool_64x64.png "UEFITool icon") ![UEFITool icon](https://raw.githubusercontent.com/LongSoft/UEFITool/new_engine/UEFITool/icons/uefitool_64x64.png "UEFITool icon")
![Coverity badge](https://scan.coverity.com/projects/1812/badge.svg?flat=1 "Coverity badge") [![Build Status](https://travis-ci.org/LongSoft/UEFITool.svg?branch=master)](https://travis-ci.org/LongSoft/UEFITool) [![Scan Status](https://scan.coverity.com/projects/17209/badge.svg?flat=1)](https://scan.coverity.com/projects/17209)
## Very Brief Introduction to UEFI ## Very Brief Introduction to UEFI

View File

@ -70,6 +70,7 @@ build_tool() {
cd "$1" || exit 1 cd "$1" || exit 1
# Build # Build
if [ "$PRECONFIGURED" != "1" ]; then
if [ "$3" != "" ]; then if [ "$3" != "" ]; then
# -flto is flawed on CI atm # -flto is flawed on CI atm
if [ "$UPLATFORM" = "mac" ]; then if [ "$UPLATFORM" = "mac" ]; then
@ -88,7 +89,9 @@ build_tool() {
cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-Os" -DCMAKE_C_FLAGS="-Os" || exit 1 cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-Os" -DCMAKE_C_FLAGS="-Os" || exit 1
fi fi
fi fi
fi
if [ "$NOBUILD" != "1" ]; then
make || exit 1 make || exit 1
# Move the binary out of the dir # Move the binary out of the dir
@ -104,6 +107,7 @@ build_tool() {
strip -x "${1}${BINSUFFIX}" || exit 1 strip -x "${1}${BINSUFFIX}" || exit 1
zip -qry ../dist/"${1}_NE_${2}_${UPLATFORM}.zip" "${1}${BINSUFFIX}" ${4} || exit 1 zip -qry ../dist/"${1}_NE_${2}_${UPLATFORM}.zip" "${1}${BINSUFFIX}" ${4} || exit 1
fi fi
fi
# Return to parent # Return to parent
cd - || exit 1 cd - || exit 1