@@ -33,8 +33,9 @@ os-matcher-app-build:
3333 - pip3 install conan
3434 - conan remote add -f ambrosys https://gl.ambrosys.de/api/v4/projects/356/packages/conan
3535 - conan user --remote ambrosys ci_user -p $CI_JOB_TOKEN
36+ - conan install . -s build_type=Release --install-folder=build -s compiler.libcxx=libstdc++11 -s compiler.cppstd=17 --build=missing
3637 script :
37- - cmake -Bbuild -H. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install -DBUILD_LIBRARY=ON -DBUILD_DOCS=OFF
38+ - cmake -Bbuild -H. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install -DBUILD_LIBRARY=ON -DBUILD_EXAMPLES=ON - DBUILD_DOCS=OFF
3839 - ninja -C build test-if-git-HEAD-has-changed
3940 - ninja -C build install
4041 - build/install/bin/AmbRouter -h
@@ -64,6 +65,43 @@ unit-test:
6465 - merge_requests
6566 - external_pull_requests
6667
68+ .conan_deploy :
69+ stage : deploy
70+ needs : ["unit-test"]
71+ before_script :
72+ - |
73+ apt update \
74+ && apt install -y cmake ninja-build python3-pip pv \
75+ && rm -rf /var/lib/apt/lists/*
76+ - pip3 install conan
77+ - conan remote add -f ambrosys https://gl.ambrosys.de/api/v4/projects/356/packages/conan
78+ - conan user --remote ambrosys ci_user -p $CI_JOB_TOKEN
79+ script :
80+ - pkg_name=os-matcher
81+ - conan remove --force "$pkg_name/*" --src --builds --packages
82+ - conan remove --force "$pkg_name/*" --system-reqs
83+ - conan install . -s build_type=Release --install-folder=build -s compiler.libcxx=libstdc++11 -s compiler.cppstd=17 --build=missing
84+ - conan create . amb/stable --build $pkg_name --build outdated --test-folder .conan/test_package
85+ - if [[ $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH ]]; then conan upload "$pkg_name/*" --confirm --all --remote ambrosys; fi
86+ only :
87+ refs :
88+ - master
89+ - merge_requests
90+ - external_pull_requests
91+
92+ conan deploy gcc7 :
93+ extends : .conan_deploy
94+ image : conanio/gcc7
95+
96+ conan deploy gcc10 :
97+ extends : .conan_deploy
98+ image : conanio/gcc10
99+
100+ conan deploy clang11 :
101+ extends : .conan_deploy
102+ image : conanio/clang11
103+
104+
67105build doc :
68106 image : bibermann/os-matcher:gcc-sphinx
69107 stage : build
@@ -136,3 +174,5 @@ pages:
136174
137175
138176
177+
178+
0 commit comments