summaryrefslogblamecommitdiff
path: root/.ci/ci-make-check.sh
blob: 36f1f2de58cbc1e117508cca39988f5166eddddb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
         




                                    
 



                            



                               
      
                                                                       


        

           
                              









                                                                                                                                                        
     




                    
#!/bin/sh

. .ci/travis.sh
if [ "$1" = "release-ready" ] ; then
  exit 0
fi

if [ "$1" = "mingw" ] ; then
  exit 0
fi

if [ "$1" = "coverity" ] ; then
  exit 0
fi

#T7151
if [ "$1" = "options-enabled" ] || [ "$1" = "options-disabled" ] ; then
  exit 0
fi

NUM_TRIES=5

travis_fold check "ninja test"
if [ "$DISTRO" != "" ] ; then
   # disable them for this distros, after meson 0.49 is out, this can be removed
   # https://github.com/mesonbuild/meson/commit/253c581412d7f2b09af353dd83d943454bd555be
   if [ "$DISTRO" != "Ubuntu1810" ] && [ "$DISTRO" != "Debian96" ]; then
     for tries in $(seq 1 ${NUM_TRIES}); do
         (docker exec --env EINA_LOG_BACKTRACE="0" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) meson test -t 120 -C build --wrapper dbus-launch ) && break
         docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) cat build/meson-logs/testlog-dbus-launch.txt
         if [ $tries != ${NUM_TRIES} ] ; then echo "tests failed, trying again!" ; fi
         false
     done
   fi
fi
ret=$?
travis_endfold check

exit $ret