Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Simox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Simox
Commits
5736f0aa
Commit
5736f0aa
authored
2 years ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Add first draft of CI pipeline
parent
5cdca6d0
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
+62
-0
62 additions, 0 deletions
.gitlab-ci.yml
.gitlab/ci/workspace.json
+17
-0
17 additions, 0 deletions
.gitlab/ci/workspace.json
with
79 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
62
−
0
View file @
5736f0aa
stages
:
-
build-and-test
build-and-test
:
stage
:
build-and-test
image
:
git.h2t.iar.kit.edu:5050/sw/armarx/meta/axii:latest-bionic
cache
:
# https://docs.gitlab.com/ee/ci/caching/#share-caches-across-jobs-in-different-branches
key
:
one-key-to-rule-them-all
paths
:
-
.ccache
before_script
:
# 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
# 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/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
# Symlink project directory into Axii workspace.
-
mkdir -p "$(dirname $armarx__meta__documentation__PATH)"
-
ln -s "$CI_PROJECT_DIR" "$armarx__meta__documentation__PATH"
# Upgrade.
-
axii workspace system --accept-apt-install
-
axii workspace update --prefer-https
-
_axii_auto_env_refresh
# Upgrade.
-
axii workspace upgrade
-
_axii_auto_env_refresh
-
ccache --show-stats
# Test.
# ToDo: Add and use `axii ws test -m simox`
-
cd "$simox__PATH/build"
-
ctest .
This diff is collapsed.
Click to expand it.
.gitlab/ci/workspace.json
0 → 100644
+
17
−
0
View file @
5736f0aa
{
"modules"
:
{
"tools/ccache/default"
:
{},
"simox"
:
{}
},
"global"
:
{
"prepare"
:
{
"cmake"
:
{
"definitions"
:
{
"CMAKE_BUILD_TYPE"
:
"Release"
,
"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