From 376d91b2a1b38dd8ea80d57bb6a34049b062be7e Mon Sep 17 00:00:00 2001 From: Antti Korpi Date: Sun, 13 Dec 2020 14:58:15 +0100 Subject: Travis: Test on Ubuntu Focal (20.04) Should have newer versions of stuff. Perhaps including GCC, to repro https://github.com/anko/xkbcat/issues/4. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8206ef3..7a06355 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -dist: bionic +dist: focal language: c compiler: - clang -- cgit v1.3-2-g0d8e From 620fed02671d624b74b7f8e54987e2ae5572019b Mon Sep 17 00:00:00 2001 From: Antti Korpi Date: Sun, 13 Dec 2020 15:01:26 +0100 Subject: Travis: Also test with gcc In addition to clang that is; re issue #4. Ubuntu Focal only has gcc 9.3.0 like my local machine, so I'm expecting this to pass too but at least it's a second opinion. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 7a06355..7d21caa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ dist: focal language: c compiler: - clang + - gcc script: - make addons: -- cgit v1.3-2-g0d8e From d5db3a0e927f80b71f1b04939cc01884c5ce806c Mon Sep 17 00:00:00 2001 From: Antti Korpi Date: Sun, 13 Dec 2020 15:37:29 +0100 Subject: Move linker flags to the end Re #4. Apparently this matters; https://stackoverflow.com/a/409470. The previous order (source file last) has worked for me locally on gcc and clang on Void Linux the whole time, and it works in clang on Travis too. Either way, Travis GCC will catch regressions. --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index f9166ab..6ec8604 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,4 @@ xkbcat: xkbcat.c - $(CC) -O3 --std=c99 -pedantic -Wall -lX11 -lXi -o xkbcat xkbcat.c + $(CC) -O3 --std=c99 -pedantic -Wall xkbcat.c -o xkbcat -lX11 -lXi clean: rm --force xkbcat -- cgit v1.3-2-g0d8e