Skip to content
Snippets Groups Projects
Commit 623bb8ae authored by Piotr Gawron's avatar Piotr Gawron
Browse files

tests of ci rpm build

parent 1c9e59e5
No related branches found
No related tags found
1 merge request!371Rpm build ci script added
Pipeline #
......@@ -14,8 +14,10 @@ test_frontend:
build_war:
image: debian
stage: build
only:
- tags
# only:
# - tags
tags:
- privileged
artifacts:
paths:
- minerva.war
......@@ -84,4 +86,31 @@ test_install_debian_package:
- test 200 = $(curl --write-out %{http_code} --silent --output /dev/null -c cookie.txt http://localhost:8080/minerva/api/doLogin)
- test 200 = $(curl --write-out %{http_code} --silent --output /dev/null --cookie cookie.txt http://localhost:8080/minerva/api/projects/)
build_rpm:
image: centos:7
stage: build
dependencies:
- build_war
# only:
# - tags
tags:
- privileged
artifacts:
paths:
- "rpm/rpmbuildtemp/RPMS/noarch/minerva-*.rpm"
script:
- yum -y install rpmdevtools unzip
- rpm/buildrpm.sh minerva.war
rpmlint:
image: centos:7
stage: test
dependencies:
- build_rpm
tags:
- privileged
# only:
# - tags
script:
- yum -y install rpmlint
- rpmlint rpm/rpmbuildtemp/RPMS/noarch/minerva-*.rpm
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment