From 8983b304b6bf95e0373e639dd966fa507ac6ec7f Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 8 Apr 2020 17:16:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scheduled.yml | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/scheduled.yml b/scheduled.yml index 3927a53..055cb6e 100644 --- a/scheduled.yml +++ b/scheduled.yml @@ -1,13 +1,11 @@ variables: GIT_SUBMODULE_STRATEGY: recursive + GET_SOURCES_ATTEMPTS: 10 .scheduled-test: only: refs: - schedules - only: - changes: - - src/**/* cache: paths: ['*.status'] before_script: @@ -18,7 +16,14 @@ variables: exit 0 fi fi - - apt-get update + - > + if [ -n "${APT_UPDATE_CMD}" ]; then + ${APT_UPDATE_CMD} + fi + - > + if [ -n "${APT_INSTALL_CMD}" ]; then + ${APT_INSTALL_CMD} + fi script: - > if [ -f "${CI_JOB_NAME}.status" ]; then @@ -32,9 +37,12 @@ variables: - cd build - cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis .. - ninja - - ninja install - - ninja package - - ninja package_source + - > + if [ -z "${CI_SHARED_ENVIRONMENT+x}" ]; then + ninja install + ninja package + ninja package_source + fi - echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status" artifacts: paths: @@ -59,14 +67,12 @@ variables: image: bionic-dev tags: ['docker'] +.scheduled-focal: + extends: .scheduled-test + image: focal-dev + tags: ['docker'] + .scheduled-elbrus: extends: .scheduled-test tags: ['elbrus'] - variables: - CI_QTDIR: "/opt/qt59" - before_script: - - export QTDIR=$CI_QTDIR - - export PATH="$CI_QTDIR/bin:$PATH" - - export LD_LIBRARY_PATH="$CI_QTDIR/lib:$LD_LIBRARY_PATH" - - export PKG_CONFIG_PATH="$CI_QTDIR/lib/pkgconfig:$PKG_CONFIG_PATH"