Browse Source

non-travis builds

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.1
falkTX 1 year ago
parent
commit
d99ad06e1f
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 19 additions and 9 deletions
  1. +19
    -9
      build.sh

+ 19
- 9
build.sh View File

@@ -13,11 +13,21 @@ if [ -z "${target}" ]; then
exit 1
fi

# ---------------------------------------------------------------------------------------------------------------------
# non-travis builds

if [ -z "${BOOTSTRAP_VERSION}" ]; then
BOOTSTRAP_VERSION=1
fi
if [ -z "${TRAVIS_BUILD_DIR}" ]; then
TRAVIS_BUILD_DIR="$(pwd)"
fi

# ---------------------------------------------------------------------------------------------------------------------
# check build step

PAWPAW_DIR="${HOME}/PawPawBuilds"
PAWPAW_BUILDDIR="${PAWPAW_DIR}/builds/${TARGET}"
PAWPAW_BUILDDIR="${PAWPAW_DIR}/builds/${target}"

if [ -e ${PAWPAW_BUILDDIR}/.last-bootstrap-version ]; then
LAST_BOOTSTRAP_VERSION=$(cat ${PAWPAW_BUILDDIR}/.last-bootstrap-version)
@@ -46,25 +56,25 @@ echo "Carla-Releases build v${BUILD_VERSION}"
# build dependencies according to version/step, caching files along the way

if [ ${BUILD_VERSION} -eq 1 ]; then
${TRAVIS_BUILD_DIR}/PawPaw/bootstrap-plugins.sh ${TARGET}
${TRAVIS_BUILD_DIR}/PawPaw/.cleanup.sh ${TARGET}
${TRAVIS_BUILD_DIR}/PawPaw/bootstrap-plugins.sh ${target}
${TRAVIS_BUILD_DIR}/PawPaw/.cleanup.sh ${target}
exit 0
fi

if [ ${BUILD_VERSION} -eq 2 ]; then
${TRAVIS_BUILD_DIR}/PawPaw/bootstrap-qt.sh ${TARGET}
${TRAVIS_BUILD_DIR}/PawPaw/.cleanup.sh ${TARGET}
${TRAVIS_BUILD_DIR}/PawPaw/bootstrap-qt.sh ${target}
${TRAVIS_BUILD_DIR}/PawPaw/.cleanup.sh ${target}
exit 0
fi

if [ ${BUILD_VERSION} -eq 3 ]; then
${TRAVIS_BUILD_DIR}/PawPaw/bootstrap-carla.sh ${TARGET}
${TRAVIS_BUILD_DIR}/PawPaw/.cleanup.sh ${TARGET}
${TRAVIS_BUILD_DIR}/PawPaw/bootstrap-carla.sh ${target}
${TRAVIS_BUILD_DIR}/PawPaw/.cleanup.sh ${target}
exit 0
fi

${TRAVIS_BUILD_DIR}/PawPaw/bootstrap-carla.sh ${TARGET}
${TRAVIS_BUILD_DIR}/PawPaw/.cleanup.sh ${TARGET}
${TRAVIS_BUILD_DIR}/PawPaw/bootstrap-carla.sh ${target}
${TRAVIS_BUILD_DIR}/PawPaw/.cleanup.sh ${target}

# ---------------------------------------------------------------------------------------------------------------------
# import PawPaw environment


Loading…
Cancel
Save