Christian Ridderström wrote:
> On 19 January 2017 at 09:28, Kornel Benko <kor...@lyx.org> wrote:
> 
> > The equivalent target for cmake is called "package_source". The result can
> > be
> >         LyX-2.3.tar.gz, LyX-2.3.tar.xz, or LyX-2.3.zip
> > depending on configure parameters.
> >
> > e.g.
> >         #cmake .. -DLYX_USE_QT=QT5 -DLYX_CPACK=ON
> > -DCPACK_SOURCE_TGZ:BOOL=ON
> >         #make package_source
> > should produce LyX-2.3.tar.gz.
> >
> 
> Is it correct that
>    make package_source
> will not actually build LyX?  I was expecting 'make package_source' to
> depend on first building LyX, but perhaps that's not needed.
> 
> For the purpose of doing a build test in the CI system, would the following
> build script then be appropriate?

If you want test cmake as well you can, but please run autotools, I am going to 
debug
primarily that.

> #!/bin/sh
> # Change directory to folder with cloned LyX repository
> cd "$1"

Good way how test autotools is eg. this:

git reset --hard && git clean -xdf && ./autogen.sh &&                           
                                                                                
                                                                   
./configure &&                                                                  
                                                                                
                                           
make &&                                                                         
                                                                                
                                                                   
make check &&                                                                   
                                                                                
                                                                   
make distcheck &&                                                               
                                                                                
                                                                   
echo "GOOD"      

If you use clean checkout already you can omit the git part.

> This will build LyX and only then do 'make package_source'.  Anything else
> that should be in there?

This will test compilation, making tarballs, compiling, installing, uninstalling
from tarballs.


Another things which we could try in next round is monolithic build and
it maybe easy wit this machinery to update our web:
- translations statistics
- doxygen docs
- contributions
?

Pavel

Reply via email to