From 78325e4651697da22420a57f0363019fee61bccc Mon Sep 17 00:00:00 2001 From: Artem Savkov Date: Thu, 10 Sep 2020 10:52:59 +0200 Subject: [PATCH] travis: build with different optimization levels Try building with -O2 and -O3. Signed-off-by: Artem Savkov --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1c1fda6..b7dbd7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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