]> granicus.if.org Git - pwauth/commitdiff
Add Travis build instructions
authorPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 24 Jul 2018 17:07:12 +0000 (11:07 -0600)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 31 Jul 2018 16:33:11 +0000 (10:33 -0600)
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..8884401
--- /dev/null
@@ -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
+