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

Update .gitlab-ci.yml file

parent ff3689da
No related branches found
No related tags found
No related merge requests found
Pipeline #1003 passed
...@@ -5,6 +5,7 @@ variables: ...@@ -5,6 +5,7 @@ variables:
OS: "linux-el6" OS: "linux-el6"
ARCH: "x86_64" ARCH: "x86_64"
NAME: "python-${PYTHON_VERSION}-${OS}-${ARCH}" NAME: "python-${PYTHON_VERSION}-${OS}-${ARCH}"
PYTHON_ROOT: "${CI_PROJECT_DIR}/${NAME}"
stages: stages:
- build - build
...@@ -12,26 +13,21 @@ stages: ...@@ -12,26 +13,21 @@ stages:
build: build:
stage: build stage: build
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 - -C /tmp - curl -s https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz | tar -xJf -
# - cd /tmp/Python-${PYTHON_VERSION} - cd Python-${PYTHON_VERSION}
# - ./configure --prefix=${PYTHON_ROOT} - ./configure --prefix=${PYTHON_ROOT}
# - make -j 4 - make -j 4
# - make install - make install
# - ln -s python3 ${PYTHON_ROOT}/bin/python - ln -s python3 ${PYTHON_ROOT}/bin/python
# - cd /tmp && rm -rf /tmp/Python-${PYTHON_VERSION} - rm -rf Python-${PYTHON_VERSION}
# # Upgrade pip # Upgrade pip
# - ${PYTHON_ROOT}/bin/pip3 install -q --no-cache-dir --upgrade pip - ${PYTHON_ROOT}/bin/pip3 install -q --no-cache-dir --upgrade pip
# # Fix python shebang to make it independent of install path # Fix python shebang to make it independent of install path
# - 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
- env - cd ${PYTHON_ROOT}
- pwd
- mkdir -p ${NAME}/bin
- echo test > ${NAME}/bin/python
- cd ${NAME}
- ls -al
- zip -r --symlinks ${CI_PROJECT_DIR}/${NAME}.zip * - zip -r --symlinks ${CI_PROJECT_DIR}/${NAME}.zip *
artifacts: artifacts:
name: ${NAME} name: ${NAME}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment