From 7dc21796294a4ff5336c8fcbb95537e64550ef2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 4 Nov 2015 10:34:42 +0000 Subject: [PATCH] build in docker tested --- bootstrap.sh | 12 ++++++++- build-in-docker.sh | 15 +++++++++++ configure.ac | 2 +- debian/control.in | 2 +- examples/makefile.am | 15 ----------- resolve-debbuilddeps.sh | 1 + webtester.spec.in | 60 +++++++++++++++++++++++++++++++++++++++++ 7 files changed, 89 insertions(+), 18 deletions(-) create mode 100755 build-in-docker.sh delete mode 100644 examples/makefile.am create mode 100644 webtester.spec.in diff --git a/bootstrap.sh b/bootstrap.sh index 4feef2d..9a76cde 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -19,6 +19,7 @@ PROJECT_PATH=$(pwd) DEFAULT_PROJECT_NAME=${PROJECT_PATH##*/} configure=0 build=0 +docker=0 buildtarget="distcheck" overwrite=0 rebuild=0 @@ -26,6 +27,7 @@ rebuildfiles=() while test $# -gt 0; do case "$1" in (--configure|-c) configure=1;; + (--docker|-d) docker=1;; (--build|-b) configure=1; build=1;; (--target|-t) shift; configure=1; build=1; buildtarget="$1";; (--overwrite|-o) overwrite=1;; @@ -42,6 +44,7 @@ SYNOPSIS OPTIONS --configure, -c call ./configure after initialization + --docker, -d build and run tests in a docker instance --build, -b build, also call ./configure && make distcheck --target, -t same as -b, but specify target instead of distcheck --overwrite, -o overwrite all basic files (bootstrap.sh, m4-macros) @@ -105,6 +108,7 @@ GENERATED FILES * ax_check_qt.m4 - auxiliary macro definition file * resolve-debbuilddeps.sh - script to install debian package dependencies * resolve-rpmbuilddeps.sh - script to install RPM package dependencies + * build-in-docker.sh - script to build the project encapsulated in a docker container * build-resource-file.sh - build resource.qrc file from a resource directory * mac-create-app-bundle.sh - script to create apple mac os-x app-bundle * AUTHORS - replace your name in AUTHORS before first run @@ -405,6 +409,7 @@ copy ax_cxx_compile_stdcxx_11.m4 copy ax_check_qt.m4 copy resolve-debbuilddeps.sh copy resolve-rpmbuilddeps.sh +copy build-in-docker.sh copy build-resource-file.sh copy mac-create-app-bundle.sh AUTHOR=$(gpg -K | sed -n 's,uid *,,p' | sort | head -1) @@ -814,7 +819,7 @@ if testtag AX_USE_DEBIAN_PACKAGING; then -- @AUTHOR@ @BUILD_DATE@ EOF - BUILD_DEPENDS="debhelper, subversion, pkg-config, automake, libtool, autotools-dev, lsb-release $(if testtag AX_USE_DOXYGEN; then echo -n ", doxygen, graphviz, mscgen"; fi; if testtag AX_USE_CPPUNIT; then echo -n ", libcppunit-dev"; fi; if testtag AX_CXX_QT || testtag AX_CHECK_QT AX_REQUIRE_QT; then echo -n ", qt5-default | qt4-default | qt5-qmake | qt4-qmake, qtbase5-dev | libqt4-dev, qtbase5-dev-tools | qt4-dev-tools, qttools5-dev-tools | qt4-dev-tools, qttools5-dev-tools | qt4-dev-tools"; fi)" + BUILD_DEPENDS="debhelper, subversion, svn2cl, pkg-config, automake, libtool, autotools-dev, lsb-release $(if testtag AX_USE_DOXYGEN; then echo -n ", doxygen, graphviz, mscgen"; fi; if testtag AX_USE_CPPUNIT; then echo -n ", libcppunit-dev"; fi; if testtag AX_CXX_QT || testtag AX_CHECK_QT AX_REQUIRE_QT; then echo -n ", qt5-default | qt4-default | qt5-qmake | qt4-qmake, qtbase5-dev | libqt4-dev, qtbase5-dev-tools | qt4-dev-tools, qttools5-dev-tools | qt4-dev-tools, qttools5-dev-tools | qt4-dev-tools"; fi)" to debian/control.in <