Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nxssh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Алексей Аляев
nxssh
Commits
d7b51f1c
Commit
d7b51f1c
authored
Mar 20, 2018
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added gitlab-ci.yml
parent
74cffc02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
+53
-0
.gitlab-ci.yml
.gitlab-ci.yml
+53
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
d7b51f1c
stages
:
-
build
-
test
build and public
:
stage
:
build
script
:
# /tmp/.private/.. нужен для hasher, т.к. он не позволяет собирать с другим каталогом, а по умолчанию
# у gitlab-runner выставляется /tmp
-
export TMPDIR=/tmp/.private/${USER}; export TMP=${TMPDIR}
# вынимаем через ssh, чтобы потом смочь сделать коммит
-
git remote | grep -q gitlab || git remote add gitlab git@gitlab.eterfund.ru:rx-etersoft/nx.git
-
/usr/bin/rpmlog -q -r -l
-
korinf -f nx.spec x86_64/ALTLinux/p8 /var/ftp/pvt/Etersoft/RX@Etersoft/unstable
-
korinf -f nx.spec x86_64/ALTLinux/Sisyphus /var/ftp/pvt/Etersoft/RX@Etersoft/unstable
-
korinf -f nx.spec x86_64/ALTLinux/p7 /var/ftp/pvt/Etersoft/RX@Etersoft/unstable
-
git push -f --tags gitlab HEAD:ci/latest-build
-
git push -f --tags gitlab HEAD:master
# Приходится делать так, потому-что gitlab-runner не позволяет обращаться к ресурсам лежащим вне сборочного каталога
-
mkdir -p RPM/log; cp -rf ${HOME}/RPM/log/*nx*.log RPM/log/
-
mkdir -p korinf-log; cp -rf ${HOME}/RPM/tmp/korinf-log/* korinf-log/
artifacts
:
paths
:
-
RPM/log
-
korinf-log
expire_in
:
10 days
only
:
-
master
tags
:
-
rx-build
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
-
cd rx-testsuite && ./rx-tests-start-all
artifacts
:
paths
:
-
rx-testsuite/report/*
expire_in
:
10 days
only
:
-
master
tags
:
-
rx-tests
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment