enhance dmm checksytle job 03/14103/3
authorsharath <sharathkumarboyanapally@gmail.com>
Thu, 9 Aug 2018 09:11:56 +0000 (14:41 +0530)
committersharath <sharathkumarboyanapally@gmail.com>
Thu, 9 Aug 2018 09:24:42 +0000 (14:54 +0530)
Change-Id: Ia6307a87cf1d95410d77336283b016f2c9eeef5a
Signed-off-by: sharath <sharathkumarboyanapally@gmail.com>
jjb/dmm/include-raw-dmm-test-checkstyle.sh

index 3811554..90b3071 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-cd build/
-cmake ..
-make checkstyle
-if [ $? -eq 0 ]; then
-    echo "DMM checkstyle is SUCCESS"
+if grep 'checkstyle' CMakeLists.txt > /dev/null
+then
+    cd build/
+    cmake ..
+    make checkstyle
+    if [ $? -eq 0 ]; then
+        echo "DMM checkstyle is SUCCESS"
+    else
+        echo "DMM checkstyle has FAILED"
+        exit 1
+    fi
 else
-    echo "DMM checkstyle has FAILED"
+    echo "Can't find checkstyle target in CMakeLists.txt- skipping test checkstyle"
     exit 1
 fi
\ No newline at end of file