Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] building Docker image and testing based on it #655

Merged
merged 1 commit into from
May 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 39 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
stages:
- build:rpm
- build:dockerimage:prepare
- build:dockerimage
- test
- publish
Expand Down Expand Up @@ -443,6 +444,44 @@ biweekly:slc6:
- schedules
except:
- tags

xrootd_docker_get:
stage: build:dockerimage:prepare
script:
- git clone https://gitlab.cern.ch/eos/xrootd-docker.git
- if [ ! -d "epel-7" ]; then mkdir epel-7; cp cc-7-x86_64/* epel-7; fi
artifacts:
expire_in: 1 day
paths:
- xrootd-docker/
- epel-7/
tags:
- xrootd-shell

xrootd_dockerimage:
stage: build:dockerimage
tags:
- docker-image-build
script:
- ""
variables:
TO: gitlab-registry.cern.ch/dss/xrootd
DOCKER_FILE: xrootd-docker/Dockerfile.ci
dependencies:
- xrootd_docker_get

xrootd_docker_test:
stage: test
script:
- docker pull gitlab-registry.cern.ch/dss/xrootd
- sudo ./xrootd-docker/start.sh -i gitlab-registry.cern.ch/dss/xrootd
- docker exec metaman text-runner /usr/lib64/libXrdClTests.so "All Tests"
after_script:
- sudo ./xrootd-docker/clean.sh
tags:
- xrootd-shell
dependencies:
- xrootd_docker_get

publish:rhel:
stage: publish
Expand Down