Skip to content

Commit

Permalink
Merge pull request #1623 from kacf/4.0.x
Browse files Browse the repository at this point in the history
4.0.x: feat: Add `SYSTEMD_UNIT_DIR` CMake variable.
  • Loading branch information
kacf committed May 7, 2024
2 parents 9d317b0 + b620dbc commit a2cb380
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,15 @@ test:backward-compat:
image: debian:10
before_script:
- apt update && apt install -yyq g++ git make lcov pkg-config liblmdb++-dev libboost-dev libboost-log-dev libboost-regex-dev libssl-dev libarchive-dev libdbus-1-dev curl dbus
# mender-artifact install
- curl https://downloads.mender.io/mender-artifact/master/linux/mender-artifact
-o /usr/local/bin/mender-artifact
- chmod +x /usr/local/bin/mender-artifact
# backport CMake
- echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/buster-backports_deps.list
- echo "deb http://archive.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/buster-backports_deps.list
- |
cat <<EOF> /etc/apt/preferences.d/prefer_backports.pref
Package: cmake*
Pin: release a=buster-backports
Pin-Priority: 999
EOF
- apt update & apt install -yyq --allow-unauthenticated cmake
- apt update && apt install -yyq --allow-unauthenticated cmake
script:
- cmake -D MENDER_DOWNLOAD_BOOST=ON .
- make --jobs=$(nproc --all) --keep-going
Expand Down Expand Up @@ -162,9 +158,8 @@ publish:tests:
# old component than two.
- curl -f https://github.com/eddyxu/cpp-coveralls/commit/067c837c04e039e8c70aa53bceda1cded6751408.patch | patch -f /usr/local/lib/python3.11/site-packages/cpp_coveralls/__init__.py

- export CI_BRANCH=$CI_COMMIT_BRANCH
# "TRAVIS_JOB_ID" is hardcoded in cpp-coveralls, but it is semantically the
# same as "CI_JOB_ID" would be.
# Set "TRAVIS_*" variables based on GitLab ones
- export TRAVIS_BRANCH=$CI_COMMIT_BRANCH
- export TRAVIS_JOB_ID=$CI_PIPELINE_ID

script:
Expand Down
2 changes: 1 addition & 1 deletion support/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(SYSTEMD_UNIT_DIR /lib/systemd/system)
set(SYSTEMD_UNIT_DIR /lib/systemd/system CACHE STRING "Directory where systemd unit files are installed")

include(GNUInstallDirs)

Expand Down

0 comments on commit a2cb380

Please sign in to comment.