[Pdbg] [PATCH 2/2] utils: Add script to run make check

Joel Stanley joel at jms.id.au
Mon Aug 13 17:41:11 AEST 2018


Hi Amitay,

On Mon, 13 Aug 2018 at 16:56, Amitay Isaacs <amitay at ozlabs.org> wrote:

> > +docker pull ubuntu:18.04
> > +docker build -t ${CONTAINER} - <<< "${Dockerfile}"
> > +
> > +RUN="docker run --rm=true --user=${USER} -w ${PWD} -v
> > ${HOME}:${HOME} -t ${CONTAINER}"
> > +
> > +${RUN} ./bootstrap.sh
> > +${RUN} ./configure
> > +${RUN} make clean
>
> Does travis cache the older image?  Or it's always created from
> scratch?  If it's created from scratch, then we don't really need "make
> clean".  If not, we also should add "git clean -x -d -f" before running
> "./bootstrap.sh"

Travis doesn't appear to cache the containers. We do cache them on
openpower.xyz's Jenkins. When I use them locally, it is cached.

We don't want to do a git clean in the script as that might have
unexpected results for people using it in their local tree.

For our CI (Travis, Jenkins) the workspace will be clean each time, so
the make clean is unnecessary. This these files are not just for
travis, but is intended for anyone wanting to do a build. Hence the
make clean which is useful if the previous build was a cross-compile.
Without the clean a user might get this:

   CCLD     pdbg
/usr/bin/x86_64-linux-gnu-ld: unknown architecture of input file
`fake.dtb.o' is incompatible with i386:x86-64 output
collect2: error: ld returned 1 exit status

Cheers,

Joel

>
> The same logic applies to build.sh.
>
> > +${RUN} make
> > +${RUN} make check
> > --
> > 2.17.1
> >
>
> Amitay.
> --
>
> Everyone is a genius at least once a year. A real genius has his ideas
> closer together.
>


More information about the Pdbg mailing list