OK, done, thanks for the suggestion.

On Wed, Aug 30, 2017 at 09:39:06AM -0400, Lance Richardson wrote:
> Travis-CI builds for branches 2.6 and 2.7 are also failing due to the
> 50 minute per-job limit, perhaps this should be back-ported to those
> branches as well.
> 
> Regards,
> 
>    Lance
> 
> ----- Original Message -----
> > From: "Lance Richardson" <[email protected]>
> > To: [email protected]
> > Sent: Thursday, August 10, 2017 4:41:19 PM
> > Subject: [ovs-dev] [PATCH] travis: parallel builds and tests
> > 
> > Some recent travis builds have failed due to having exceeded the
> > per-job time limit of 50 minutes. This change enables parallel
> > builds and parallel test execution in order to reduce overall
> > execution time, and will hopefully allow this class of build
> > failures to be avoided.
> > 
> > Since the travis build environment is provisioned with two CPUs,
> > use -j2 for builds and -j4 for tests. Testing in a cloned repository
> > shows slightly more than a 50% reduction in overall test time.
> > 
> > Signed-off-by: Lance Richardson <[email protected]>
> > ---
> >  .travis/linux-build.sh | 8 ++++----
> >  1 file changed, 4 insertions(+), 4 deletions(-)
> > 
> > diff --git a/.travis/linux-build.sh b/.travis/linux-build.sh
> > index d6f610ea1..bc7c7087d 100755
> > --- a/.travis/linux-build.sh
> > +++ b/.travis/linux-build.sh
> > @@ -102,16 +102,16 @@ if [ "$KERNEL" ] && [ ! "$TESTSUITE" ] && [ ! "$DPDK"
> > ]; then
> >  fi
> >  
> >  if [ "$CC" = "clang" ]; then
> > -    make CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument"
> > +    make -j2 CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument"
> >  elif [[ $BUILD_ENV =~ "-m32" ]]; then
> >      # Disable sparse for 32bit builds on 64bit machine
> > -    make CFLAGS="$CFLAGS $BUILD_ENV"
> > +    make -j2 CFLAGS="$CFLAGS $BUILD_ENV"
> >  else
> > -    make CFLAGS="$CFLAGS $BUILD_ENV $SPARSE_FLAGS" C=1
> > +    make -j2 CFLAGS="$CFLAGS $BUILD_ENV $SPARSE_FLAGS" C=1
> >  fi
> >  
> >  if [ "$TESTSUITE" ] && [ "$CC" != "clang" ]; then
> > -    if ! make distcheck RECHECK=yes; then
> > +    if ! make distcheck TESTSUITEFLAGS=-j4 RECHECK=yes; then
> >          # testsuite.log is necessary for debugging.
> >          cat */_build/tests/testsuite.log
> >          exit 1
> > --
> > 2.13.4
> > 
> > _______________________________________________
> > dev mailing list
> > [email protected]
> > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
> > 
> _______________________________________________
> dev mailing list
> [email protected]
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to