Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Devtools
git
Commits
f380c82b
Commit
f380c82b
authored
2 years ago
by
MADELA Patrick
Browse files
Options
Downloads
Patches
Plain Diff
Reduce size of package by replacing harlinks by symlinks
parent
42a9b24d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#1041
passed
2 years ago
Stage: build
Stage: test
Stage: package
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+33
-32
33 additions, 32 deletions
.gitlab-ci.yml
with
33 additions
and
32 deletions
.gitlab-ci.yml
+
33
−
32
View file @
f380c82b
...
...
@@ -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"]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment