Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Leander Singer
RobotAPI
Commits
c8946066
Commit
c8946066
authored
1 year ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Add CI pipeline
parent
1c79b1e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+99
-0
99 additions, 0 deletions
.gitlab-ci.yml
.gitlab/ci/armarx-workspace.json
+17
-0
17 additions, 0 deletions
.gitlab/ci/armarx-workspace.json
with
116 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
99
−
0
View file @
c8946066
stages
:
-
build-and-test
.build-and-test
:
cache
:
# https://docs.gitlab.com/ee/ci/caching/#share-caches-across-jobs-in-different-branches
key
:
one-key-to-rule-them-all
paths
:
-
.apt
-
.ccache
before_script
:
# Apt cache configuration.
-
rm -rf /var/cache/apt/archives ||
true
-
rm -f /etc/apt/apt.conf.d/docker-clean
# Remove docker-clean script to avoid cache deletion.
-
mkdir .apt ||
true
-
ln -s "$CI_PROJECT_DIR/.apt" /var/cache/apt/archives
# Update apt info.
-
apt-get update
# Ccache configuration and introspection.
-
apt-get install ccache --yes
-
ccache --set-config=cache_dir="$CI_PROJECT_DIR/.ccache"
-
ccache --max-size=20G
-
ccache --show-stats
# Ice configuration to run in Docker.
-
export ICE_DEFAULT_HOST="127.0.0.1"
-
export ICE_RUN_AS_ROOT="true"
# Activate Axii.
-
source /axii/scripts/install_axii.sh
script
:
# Create workspace.
-
axii workspace create ~/workspace workspace
-
axii workspace activate workspace
-
_axii_auto_env_refresh
# Use workspace configuration from project.
-
cp "$CI_PROJECT_DIR/.gitlab/ci/armarx-workspace.json" "$ARMARX_WORKSPACE/armarx-workspace.json"
-
cat "$ARMARX_WORKSPACE/armarx-workspace.json"
-
axii workspace env
-
_axii_auto_env_refresh
-
echo "Workspace information:"
-
axii workspace list-modules
-
axii workspace list-modules --deps
-
axii workspace info
-
export PROJECT_MODULE="armarx/RobotAPI"
-
export PROJECT_PATH_IN_WORKSPACE="$armarx__RobotAPI__PATH"
# Symlink project directory into Axii workspace.
-
mkdir -p "$(dirname $PROJECT_PATH_IN_WORKSPACE)"
-
ln -s "$CI_PROJECT_DIR" "$PROJECT_PATH_IN_WORKSPACE"
# Upgrade.
-
axii workspace system --accept-apt-install
-
axii workspace update --prefer-https
-
axii workspace upgrade -m "$PROJECT_MODULE"
-
ccache --show-stats
# Try starting Ice.
-
armarx switch docker_test --ice-host 127.0.0.1 --ice-port 10000 --ice-default-host 127.0.0.1 --mongo-host 127.0.0.1 --mongo-port
10001
-
armarx profile
-
armarx status ||
true
#- armarx start
# armarx status
#- armarx stop
# Test.
# ToDo: Add and use `axii ws test -m "$PROJECT_MODULE"`
-
cd "$PROJECT_PATH_IN_WORKSPACE/build"
-
ctest --output-on-failure --output-junit "$CI_PROJECT_DIR/report.xml" .
artifacts
:
reports
:
junit
:
report.xml
build-and-test-bionic
:
stage
:
build-and-test
extends
:
.build-and-test
image
:
git.h2t.iar.kit.edu:5050/sw/armarx/meta/axii:latest-bionic
build-and-test-jammy
:
stage
:
build-and-test
extends
:
.build-and-test
image
:
git.h2t.iar.kit.edu:5050/sw/armarx/meta/axii:latest-jammy
This diff is collapsed.
Click to expand it.
.gitlab/ci/armarx-workspace.json
0 → 100644
+
17
−
0
View file @
c8946066
{
"modules"
:
{
"tools/ccache/default"
:
{},
"armarx/RobotAPI"
:
{}
},
"global"
:
{
"prepare"
:
{
"cmake"
:
{
"definitions"
:
{
"CMAKE_BUILD_TYPE"
:
"RelWithDebInfo"
,
"CMAKE_C_COMPILER_LAUNCHER"
:
"$CCACHE"
,
"CMAKE_CXX_COMPILER_LAUNCHER"
:
"$CCACHE"
}
}
}
}
}
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