Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libagipdctrl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
DetectorSoftware
libagipdctrl
Commits
0715512c
Commit
0715512c
authored
4 years ago
by
Yuelong Yu
Browse files
Options
Downloads
Patches
Plain Diff
added gitlab ci files
parent
94bc7b68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#11192
failed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+76
-0
76 additions, 0 deletions
.gitlab-ci.yml
.gitlab/build.sh
+15
-0
15 additions, 0 deletions
.gitlab/build.sh
with
91 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
76
−
0
View file @
0715512c
variables
:
debian9_image_name
:
yyl10/debian9:latest
debian10_image_name
:
yyl10/debian10:latest
stages
:
-
build
-
test
-
deploy
build on debian 9
:
stage
:
build
image
:
$debian9_image_name
only
:
-
master
-
develop
before_script
:
-
apt install -y unzip
-
echo "get depencency libfsdetcore"
-
curl --header "Private-Token:${USER_TOKEN}" https://eosc-pan-git.desy.de/api/v4/projects/115/jobs/4254/artifacts/ -o libfsdetcore-debian9.zip
-
unzip libfsdetcore-debian9.zip
-
cd libfsdetcore
-
dpkg -i libfsdetcore*.deb
-
dpkg -l|grep libfsdetcore
script
:
-
source .gitlab/build.sh
artifacts
:
paths
:
-
report/*.xml
build on debian 10
:
stage
:
build
image
:
$debian10_image_name
only
:
-
master
-
develop
before_script
:
-
apt install -y unzip
-
echo "get depencency libfsdetcore"
-
curl --header "Private-Token:${USER_TOKEN}" https://eosc-pan-git.desy.de/api/v4/projects/115/jobs/4255/artifacts/ -o libfsdetcore-debian10.zip
-
unzip libfsdetcore-debian10.zip
-
cd libfsdetcore
-
dpkg -i libfsdetcore*.deb
-
dpkg -l|grep libfsdetcore
script
:
-
source .gitlab/build.sh
artifacts
:
paths
:
-
report/*.xml
# build package debian 9:
# stage: deploy
# only:
# - master
# - tags
# variables:
# UPSTREAM_IMAGENAME: $debian9_image_name
# UPSTREAM_DIST: debian9
# UPSTREAM_BRANCH: $CI_COMMIT_REF_NAME
# UPSTREAM_HASH: $CI_COMMIT_SHORT_SHA
# trigger: yuelong/libagipdctrl-deploy
# build package debian 10:
# stage: deploy
# only:
# - master
# - tags
# variables:
# UPSTREAM_IMAGENAME: $debian10_image_name
# UPSTREAM_DIST: debian10
# UPSTREAM_BRANCH: $CI_COMMIT_REF_NAME
# UPSTREAM_HASH: $CI_COMMIT_SHORT_SHA
# trigger: yuelong/libagipdctrl-deploy
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab/build.sh
0 → 100644
+
15
−
0
View file @
0715512c
#!/bin/bash
# author : Yuelong Yu
SOURCE_ROOT
=
$PWD
mkdir
-p
report
echo
"=create build folder="
mkdir
-p
build
&&
cd
build
echo
"=start build="
cmake
-DCMAKE_INSTALL_PREFIX
=
"/lib.local/"
-DCMAKE_BUILD_TYPE
=
DEBUG
"
$SOURCE_ROOT
"
make
-j4
echo
"=run test="
ctest
--verbose
echo
"=install="
make
install
cd
"
$SOURCE_ROOT
"
\ No newline at end of file
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