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

Reduce size of package by replacing harlinks by symlinks

parent 42a9b24d
No related branches found
No related tags found
No related merge requests found
Pipeline #1041 passed
......@@ -5,8 +5,8 @@ variables:
stages:
- build
# - test
# - upload
- test
- package
.build:
stage: build
......@@ -17,27 +17,28 @@ stages:
- git checkout v${GIT_VERSION}
- autoconf
- ./configure --prefix=${CI_PROJECT_DIR}/${NAME}
- make && make install
- make NO_INSTALL_HARDLINKS=YesPlease
- make NO_INSTALL_HARDLINKS=YesPlease install
- cd ${CI_PROJECT_DIR}/${NAME}
- zip -r --symlinks ../${NAME}.zip *
- cd ${CI_PROJECT_DIR}
- ls -al
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${NAME}.zip "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/git/${GIT_VERSION}/"'
# artifacts:
# name: ${NAME}
# paths:
# - ${NAME}.zip
artifacts:
name: ${NAME}
paths:
- ${NAME}
# .test:
# stage: test
# script:
# - unzip ${NAME}.zip -d ${NAME}
# - ${NAME}/bin/git --version | grep ${GIT_VERSION}
.test:
stage: test
script:
- ${NAME}/bin/git --version | grep ${GIT_VERSION}
# .upload:
# stage: upload
# script:
# - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${NAME}.zip "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/fakegit/${GIT_VERSION}/"'
.package:
stage: package
script:
- cd ${CI_PROJECT_DIR}/${NAME}
- zip -r --symlinks ../${NAME}.zip *
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ../${NAME}.zip "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/fakegit/${GIT_VERSION}/"'
linux-el6-x86_64:
extends: [".build"]
......@@ -45,22 +46,22 @@ linux-el6-x86_64:
variables:
NAME: "git-${GIT_VERSION}-linux-el6-x86_64"
# test-el6-x86_64:
# extends: [".test"]
# image: gitlab-registry.synchrotron-soleil.fr/software-control-system/containers/dev-el6-gcc44
# variables:
# NAME: "git-${GIT_VERSION}-linux-el6-x86_64"
# needs:
# - linux-el6-x86_64
test-el6-x86_64:
extends: [".test"]
image: gitlab-registry.synchrotron-soleil.fr/software-control-system/containers/dev-el6-gcc44
variables:
NAME: "git-${GIT_VERSION}-linux-el6-x86_64"
needs:
- linux-el6-x86_64
# upload-el6-x86_64:
# extends: [".upload"]
# image: gitlab-registry.synchrotron-soleil.fr/software-control-system/containers/dev-el6-gcc44
# variables:
# NAME: "git-${GIT_VERSION}-linux-el6-x86_64"
# needs:
# - linux-el6-x86_64
# - test-el6-x86_64
package-el6-x86_64:
extends: [".package"]
image: gitlab-registry.synchrotron-soleil.fr/software-control-system/containers/dev-el6-gcc44
variables:
NAME: "git-${GIT_VERSION}-linux-el6-x86_64"
needs:
- linux-el6-x86_64
- test-el6-x86_64
# linux-el6-i686:
# extends: [".build-python"]
......
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