Skip to content
Snippets Groups Projects
Commit e29d7443 authored by Patrick MADELA's avatar Patrick MADELA
Browse files

Update .gitlab-ci.yml file

parent c43c2e31
No related branches found
No related tags found
No related merge requests found
Pipeline #1006 failed
variables: variables:
PYTHON_VERSION: "3.6.13" PYTHON_VERSION: "3.6.13"
OS: "linux-el6"
ARCH: "x86_64"
NAME: "python-${PYTHON_VERSION}-${OS}-${ARCH}"
PYTHON_ROOT: "${CI_PROJECT_DIR}/${NAME}"
stages: stages:
- build - build
- test
- package
build: .build-python:
stage: build stage: build
image: gitlab-registry.synchrotron-soleil.fr/software-control-system/containers/dev-el6-gcc44
script: script:
- yum -y install zlib-devel bzip2-devel openssl-devel readline-devel ncurses-devel sqlite-devel gdbm-devel db4-devel expat-devel libpcap-devel xz-devel pcre-devel libffi-devel tk-devel - yum -y install zlib-devel bzip2-devel openssl-devel readline-devel ncurses-devel sqlite-devel gdbm-devel db4-devel expat-devel libpcap-devel xz-devel pcre-devel libffi-devel tk-devel
- curl -s https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz | tar -xJf - - curl -s https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz | tar -xJf -
...@@ -30,19 +22,27 @@ build: ...@@ -30,19 +22,27 @@ build:
- grep -I -r -l "^#\!${PYTHON_ROOT}/bin/python.*$" ${PYTHON_ROOT} | xargs sed -i '1c\#\!/usr/bin/env python' - grep -I -r -l "^#\!${PYTHON_ROOT}/bin/python.*$" ${PYTHON_ROOT} | xargs sed -i '1c\#\!/usr/bin/env python'
# Clean pycache # Clean pycache
- find ${PYTHON_ROOT} -iname __pycache__ -print0 | xargs -0 rm -rf - find ${PYTHON_ROOT} -iname __pycache__ -print0 | xargs -0 rm -rf
test:
stage: test
image: gitlab-registry.synchrotron-soleil.fr/software-control-system/containers/dev-el6-gcc44
script:
- ${PYTHON_ROOT}/bin/python --version | grep "python ${PYTHON_VERSION}"
package:
stage: package
script:
- cd ${PYTHON_ROOT} - cd ${PYTHON_ROOT}
- zip -r --symlinks ${CI_PROJECT_DIR}/${NAME}.zip * - zip -r --symlinks ${CI_PROJECT_DIR}/${NAME}.zip *
artifacts: artifacts:
name: ${NAME} name: ${NAME}
paths: paths:
- ${NAME}.zip - *.zip
build:
extends: [".build-python"]
image: gitlab-registry.synchrotron-soleil.fr/software-control-system/containers/dev-el6-gcc44
variables:
OS: "linux-el6"
ARCH: "x86_64"
NAME: "python-${PYTHON_VERSION}-${OS}-${ARCH}"
PYTHON_ROOT: "${CI_PROJECT_DIR}/${NAME}"
build:
extends: [".build-python"]
image: gitlab-registry.synchrotron-soleil.fr/software-control-system/containers/dev-el6-gcc44-x86
variables:
OS: "linux-el6"
ARCH: "i686"
NAME: "python-${PYTHON_VERSION}-${OS}-${ARCH}"
PYTHON_ROOT: "${CI_PROJECT_DIR}/${NAME}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment