From: Philip Prindeville Date: Tue, 24 Jul 2018 17:07:12 +0000 (-0600) Subject: Add Travis build instructions X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b1edc6eb8a5966d0a2d88537df985f70805330e;p=pwauth Add Travis build instructions Signed-off-by: Philip Prindeville --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8884401 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +language: c +git: + quiet: true + +addons: + apt: + packages: + - libpam0g-dev + +compiler: + - gcc + - clang + +before_script: + - sed -r -i -e 's/^# \(LIB=.*\)$/\1/' pwauth/Makefile + sed -r -i -e 's/^#define SHADOW_SUN\>/\/* &/' \ + -e 's/^\/* \(#define PAM\>\)/\1/' \ + -e 's/^#define NOLOGIN_FILE\>/\/* &/' \ + -e 's/^#define MIN_LOGIN_UID\>/\/* &/' \ + -e 's/^#define SERVER_UIDS\>/\/* &/' \ + pwauth/config.h + +script: + - make -j1 CFLAGS="-Wall -Wformat-all -Wno-comment" + +branches: + only: + - master + +install: true +