17 lines
590 B
Bash
Executable File
17 lines
590 B
Bash
Executable File
#! /bin/sh
|
|
#
|
|
# Travis CI script for use on every-commit:
|
|
# - build and install Calamares
|
|
#
|
|
test -n "$BUILDDIR" || { echo "! \$BUILDDIR not set" ; exit 1 ; }
|
|
test -n "$SRCDIR" || { echo "! \$SRCDIR not set" ; exit 1 ; }
|
|
|
|
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 ; }
|
|
|
|
cd $BUILDDIR || exit 1
|
|
|
|
echo "# cmake $CMAKE_ARGS $SRCDIR"
|
|
cmake $CMAKE_ARGS $SRCDIR && make -j2 && make install DESTDIR=/build/INSTALL_ROOT
|