2017-10-25 11:26:04 +02:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# Travis CI script for use on every-commit:
|
|
|
|
# - build and install Calamares
|
|
|
|
#
|
2018-08-20 23:39:56 +02:00
|
|
|
test -n "$BUILDDIR" || { echo "! \$BUILDDIR not set" ; exit 1 ; }
|
|
|
|
test -n "$SRCDIR" || { echo "! \$SRCDIR not set" ; exit 1 ; }
|
2017-10-25 11:26:04 +02:00
|
|
|
|
2018-08-20 23:39:56 +02:00
|
|
|
test -d $BUILDDIR || { echo "! $BUILDDIR not a directory" ; exit 1 ; }
|
|
|
|
test -d $SRCDIR || { echo "! $SRCDIR not a directory" ; exit 1 ; }
|
|
|
|
test -f $SRCDIR/CMakeLists.txt || { echo "! Missing $SRCDIR/CMakeLists.txt" ; exit 1 ; }
|
2017-10-25 11:26:04 +02:00
|
|
|
|
|
|
|
cd $BUILDDIR || exit 1
|
|
|
|
|
2018-08-21 13:45:44 +02:00
|
|
|
echo "# cmake $CMAKE_ARGS $SRCDIR"
|
2018-08-10 13:09:28 +02:00
|
|
|
cmake $CMAKE_ARGS $SRCDIR && make -j2 && make install DESTDIR=/build/INSTALL_ROOT
|