travis: build with different optimization levels

Try building with -O2 and -O3.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
Artem Savkov 2020-09-10 10:52:59 +02:00
parent 25f12681fa
commit 78325e4651
1 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,14 @@ before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libelf-dev linux-headers-$(uname -r) shellcheck elfutils
jobs:
include:
- name: "Default"
- name: "-O2"
env: CFLAGS="-O2"
- name: "-O3"
env: CFLAGS="-O3"
script:
- make
- make unit