Skip to content

Commit

Permalink
Merge pull request #14 from infrawatch/lmadsen-ci-annocheck
Browse files Browse the repository at this point in the history
Add basic annocheck verification to CI pipeline
  • Loading branch information
leifmadsen authored Jul 20, 2020
2 parents 9c34fe1 + b956d7e commit 039a3bd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# vim: noai:ts=2:sw=2:ft=yaml:
language: minimal

git:
depth: 1

sudo: required

services:
- docker

# setup dependencies required for testing
before_install:
- docker pull fedora:32

# execute unit testing and code coverage
install:
- docker run -uroot --network host -it --volume $PWD:/src/sg-bridge:z --workdir /src/sg-bridge fedora:32 /bin/sh -c 'sh ./build/build_checks.sh'
9 changes: 9 additions & 0 deletions build/build_checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -ex

dnf install make gcc qpid-proton-c-devel annobin-annocheck rpm-build -y

make 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'

annocheck bridge

0 comments on commit 039a3bd

Please sign in to comment.