Merge pull request #4949 from commodo/python-lxml-update
[feed/packages.git] / .travis_do.sh
index af82262f50cd5f3c623a9733dde75d4177d19259..2dd1c1c8d771129f9934a24c22c02aba44fbf1e6 100755 (executable)
@@ -92,9 +92,9 @@ EOF
        # enable BUILD_LOG
        sed -i '1s/^/config BUILD_LOG\n\tbool\n\tdefault y\n\n/' Config-build.in
 
-       ./scripts/feeds update -a
-       ./scripts/feeds install -a
-       make defconfig
+       ./scripts/feeds update -a > /dev/null
+       ./scripts/feeds install -a > /dev/null
+       make defconfig > /dev/null
        echo_blue "=== Setting up SDK done"
 
        RET=0
@@ -118,14 +118,14 @@ EOF
 
                # we can't enable verbose built else we often hit Travis limits
                # on log size and the job get killed
-               exec_status '^ERROR' make "package/$pkg_name/compile" -j3
+               exec_status '^ERROR' make "package/$pkg_name/compile" -j3 || RET=1
 
                echo_blue "=== $pkg_name: compile test done"
 
                echo_blue "=== $pkg_name: begin compile logs"
                for f in $(find logs/package/feeds/packages/$pkg_name/ -type f); do
-                       echo_blue "Printing $f"
-                       cat "$f"
+                       echo_blue "Printing last 200 lines of $f"
+                       tail -n200 "$f"
                done
                echo_blue "=== $pkg_name: end compile logs"
 
@@ -134,7 +134,7 @@ EOF
                echo_blue "=== $pkg_name: end packages sizes"
        done
 
-       return 0
+       return $RET
 }
 
 test_commits() {