shithub: choc

Download patch

ref: b5db4a7536f093f0657d254b06910e491b0b5fad
parent: f62b804e6dbe04f0e5ec23ed630a5a66c6cc8d8b
parent: 63141cfc0d8cfa180c5a98e50c10a81faea5abef
author: Simon Howard <[email protected]>
date: Mon Sep 4 19:55:26 EDT 2017

Merge branch 'sdl2-branch' of github.com:chocolate-doom/chocolate-doom into sdl2-branch

--- /dev/null
+++ b/.travis.sh
@@ -1,0 +1,10 @@
+#!/bin/sh
+set -e
+if [ "$ANALYZE" = "true" ] ; then
+	cppcheck --error-exitcode=1 -j2 -UTESTING -Iopl -Isrc -Isrc/setup opl pcsound src textscreen > /dev/null
+else
+	./autogen.sh
+	make
+	make install DESTDIR=/tmp/whatever
+	make dist
+fi
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,9 +7,14 @@
 sudo: required
 dist: trusty
 
+env:
+    - ANALYZE=false
+    - ANALYZE=true
+
 addons:
     apt:
         packages:
+        - cppcheck
         - libsdl2-dev
         - libsdl2-mixer-dev
         - libsdl2-net-dev
@@ -16,7 +21,7 @@
         - libsdl2-image-dev
         - libsamplerate0-dev
 
-script: ./autogen.sh && make && make install DESTDIR=/tmp/whatever && make dist
+script: ./.travis.sh
 
 branches:
     only: