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

Python bindings tests stage #768

Merged
merged 3 commits into from
Jul 16, 2018
Merged
Show file tree
Hide file tree
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
38 changes: 38 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ release:deb_ubuntu_xenial:
release:pypi:
stage: build:rpm
script:
- cp packaging/wheel/* .
- ./publish.sh
tags:
- xrootd-shell
Expand Down Expand Up @@ -519,6 +520,43 @@ xrootd_docker_test:
only:
- schedules


pyxrootd_dockerimage:
stage: build:dockerimage
tags:
- docker-image-build
script:
- ""
variables:
TO: gitlab-registry.cern.ch/dss/xrootd
DOCKER_FILE: xrootd-docker/Dockerfile-python.ci
dependencies:
- xrootd_docker_get
only:
- web
allow_failure: true

pyxrootd_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 sh -c "head -c 1000000 /dev/urandom > /tmp/smallfile"
- docker exec metaman sh -c "head -c 1000000 /dev/urandom > /tmp/smallcopy"
- docker exec metaman sh -c "head -c 100000000 /dev/urandom > /tmp/bigfile"
- docker exec metaman sh -c "head -c 100000000 /dev/urandom > /tmp/bigcopy"
- docker exec metaman sh -c "cd xrootd/bindings/python && pytest"

after_script:
- sudo ./xrootd-docker/clean.sh
tags:
- xrootd-shell
dependencies:
- xrootd_docker_get
only:
- web
allow_failure: true

publish:rhel:
stage: publish
image: gitlab-registry.cern.ch/linuxsupport/cc7-base
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions setup.py → packaging/wheel/setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, Extension
from setuptools.command.install import install
from setuptools.command.sdist import sdist
from setuptools.command.bdist_rpm import bdist_rpm
from distutils.command.bdist import bdist

import subprocess
import sys
Expand Down Expand Up @@ -45,7 +45,7 @@ def run(self):
sdist.run(self)


class CustomWheelGen(bdist_rpm):
class CustomWheelGen(bdist):
# Do not generate wheel
def run(self):
return
Expand Down