]> granicus.if.org Git - openjpeg/commitdiff
Travis-ci update
authormayeut <mayeut@users.noreply.github.com>
Mon, 14 Sep 2015 18:09:50 +0000 (20:09 +0200)
committermayeut <mayeut@users.noreply.github.com>
Mon, 14 Sep 2015 18:09:50 +0000 (20:09 +0200)
Correct case in config
Check DynamicAnalysis result

.travis.yml
tools/travis-ci/run.sh

index 81245f35f211920707cf0fb1efbab9240e9a6cca..e5872a31ec3a86711ca86bea6addcb586fe2558d 100644 (file)
@@ -10,7 +10,7 @@ env:
   - OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Release
   - OPJ_CI_ARCH=i386 OPJ_CI_BUILD_CONFIGURATION=Release
   - OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Debug OPJ_CI_ASAN=1
-  - OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=DEBUG
+  - OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Debug
   
 matrix:
   exclude:
@@ -21,7 +21,7 @@ matrix:
     - compiler: clang
       env: OPJ_CI_ARCH=i386 OPJ_CI_BUILD_CONFIGURATION=Release
     - compiler: clang
-      env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=DEBUG
+      env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Debug
     - os: linux
       compiler: clang
       env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Release
index c7387ab2a761309a5a5b872b59ce138ae85d0a5b..bec41d6d3d2140f155c334d79c60d2d9a95dc204 100755 (executable)
@@ -189,20 +189,26 @@ if [ "${OPJ_CI_SKIP_TESTS:-}" != "1" ]; then
                        done < failures.txt
                fi
        fi
-
-       # 4th memcheck step
-       OPJ_MEMCHECK_XML=$(find build -path 'build/Testing/*' -name 'DynamicAnalysis.xml')
-       if [ -f "${OPJ_MEMCHECK_XML}" ]; then
-               echo "TODO parse DynamicAnalysis.xml"
-       fi
-
+       
        if [ ${OPJ_CI_RESULT} -eq 0 ]; then
-               echo "No new/unknown test failure found"
+               echo "No new/unknown test failure found
+               "
        else
                echo "
 New/unknown test failure found!!!
        "
        fi
+       
+       # 4th memcheck step
+       OPJ_MEMCHECK_XML=$(find build -path 'build/Testing/*' -name 'DynamicAnalysis.xml')
+       if [ -f "${OPJ_MEMCHECK_XML}" ]; then
+               if grep '<Defect Type' ${OPJ_MEMCHECK_XML} 2> /dev/null; then
+                       echo "Errors were found in dynamic analysis log"
+                       OPJ_CI_RESULT=1
+               fi
+       fi
+
+
 fi
 
 exit ${OPJ_CI_RESULT}