2019-10-02 10:47:26 +00:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
2020-03-31 05:04:15 +00:00
|
|
|
GET_SOURCES_ATTEMPTS: 10
|
2019-10-02 10:47:26 +00:00
|
|
|
|
|
|
|
.scheduled-test:
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- schedules
|
|
|
|
cache:
|
|
|
|
paths: ['*.status']
|
|
|
|
before_script:
|
|
|
|
- >
|
|
|
|
if [ -f "${CI_JOB_NAME}.status" ]; then
|
|
|
|
if [ "$(cat ${CI_JOB_NAME}.status)" == "${CI_COMMIT_SHA}" ]; then
|
|
|
|
echo "=== Commit ${CI_COMMIT_SHORT_SHA} already tested with job ${CI_JOB_NAME} ==="
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
- >
|
|
|
|
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
|
|
|
|
if [ "$(cat ${CI_JOB_NAME}.status)" == "${CI_COMMIT_SHA}" ]; then
|
|
|
|
echo "=== Commit ${CI_COMMIT_SHORT_SHA} already tested with job ${CI_JOB_NAME} ==="
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
- rm -f ${CI_JOB_NAME}.status
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis ..
|
|
|
|
- ninja
|
2019-11-01 11:57:18 +00:00
|
|
|
- >
|
|
|
|
if [ -z "${CI_SHARED_ENVIRONMENT+x}" ]; then
|
|
|
|
ninja install
|
|
|
|
ninja package
|
|
|
|
ninja package_source
|
|
|
|
fi
|
2019-10-02 10:47:26 +00:00
|
|
|
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/*.xz
|
|
|
|
- build/*.deb
|
|
|
|
when: on_success
|
|
|
|
expire_in: 10 days
|
|
|
|
|
|
|
|
|
|
|
|
.scheduled-smolensk15:
|
|
|
|
extends: .scheduled-test
|
|
|
|
image: smolensk15-dev
|
|
|
|
tags: ['docker']
|
|
|
|
|
|
|
|
.scheduled-orel212:
|
|
|
|
extends: .scheduled-test
|
|
|
|
image: orel212-dev
|
|
|
|
tags: ['docker']
|
|
|
|
|
|
|
|
.scheduled-bionic:
|
|
|
|
extends: .scheduled-test
|
|
|
|
image: bionic-dev
|
|
|
|
tags: ['docker']
|
|
|
|
|
2020-03-31 05:04:15 +00:00
|
|
|
.scheduled-focal:
|
|
|
|
extends: .scheduled-test
|
|
|
|
image: focal-dev
|
|
|
|
tags: ['docker']
|
|
|
|
|
2019-10-02 10:47:26 +00:00
|
|
|
.scheduled-elbrus:
|
|
|
|
extends: .scheduled-test
|
|
|
|
tags: ['elbrus']
|
|
|
|
|