Commit e61b3cb5 authored by Pavel Vainerman's avatar Pavel Vainerman

(CI): added test build

parent 93a463a8
variables:
# Как долго хранить тестовые сборки, дней
DEV_EXPIRE_IN: "7"
# Каталог куда собираются тестовые сборки
DEV_RPMDIR: "/var/ftp/pvt/Etersoft/RX@Etersoft/CI"
stages:
- build
- test
......@@ -38,8 +44,7 @@ testsuite:
stage: test
script:
- epm --auto Install nxssh
# токен задаётся как VARIABLE в свойствах проекта
- git clone https://gitlab-ci-token:${RX_TESTSUITE_TOKEN}@gitlab.eterfund.ru/rx-etersoft/rx-testsuite.git
- git clone git@gitlab.eterfund.ru:rx-etersoft/rx-testsuite.git
- cd rx-testsuite && ./rx-tests-start-all
artifacts:
paths:
......@@ -51,3 +56,24 @@ testsuite:
tags:
- rx-tests
test build:
stage: build
script:
- export TMPDIR=/tmp/.private/${USER}; export TMP=${TMPDIR}
- export RPMDIR=${DEV_RPMDIR}/$CI_BUILD_ID
- mkdir -p $RPMDIR/sources
- eterremove remove --days $DEV_EXPIRE_IN dirs ${DEV_RPMDIR} || echo "ignore remove error.."
- /usr/bin/rpmlog -q -r -l
- korinf -f .gear/nxssh.spec x86_64/ALTLinux/p8 ${RPMDIR}
- korinf -f .gear/nxssh.spec x86_64/ALTLinux/Sisyphus ${RPMDIR}
- korinf -f .gear/nxssh.spec x86_64/ALTLinux/p7 ${RPMDIR}
# 32 bit
- korinf -f .gear/nxssh.spec ALTLinux/p8 ${RPMDIR}
- korinf -f .gear/nxssh.spec ALTLinux/Sisyphus ${RPMDIR}
- korinf -f .gear/nxssh.spec ALTLinux/p7 ${RPMDIR}
only:
- /^ci-.*/
tags:
- rx-build
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment