Debian Codegraph @

.circleci/config.yml

raw
1 version: 2
2 jobs:
3 full-u20.04-focal-codecov:
4 docker:
5 - image: mrpt/mrpt-build-env:full-focal
6 steps:
7 - checkout
8 - run: git submodule sync
9 - run: git submodule update --init --recursive
10 - run: cmake -DMRPT_BUILD_EXAMPLES=On -DMRPT_BUILD_TESTING=On -DMRPT_ENABLE_COVERAGE=On -DMRPT_ALLOW_LGPLV3=ON -DCMAKE_VERBOSE_MAKEFILE=ON -H. -Bbuild-u20.04
11 - run: make -C build-u20.04 tests_build_all
12 - run: make CTEST_OUTPUT_ON_FAILURE=1 test -C build-u20.04
13 - run: make gcov -C build-u20.04
14 - run: make -C build-u20.04
15 - run: bash <(curl -s https://codecov.io/bash) -X gcov -y .codecov.yml -s build-u20.04
16 full-u21.10-impish:
17 docker:
18 - image: mrpt/mrpt-build-env:full-u21.10-impish
19 steps:
20 - checkout
21 - run: git submodule sync
22 - run: git submodule update --init --recursive
23 - run: cmake -DMRPT_BUILD_EXAMPLES=On -DMRPT_BUILD_TESTING=On -DMRPT_ALLOW_LGPLV3=ON -DCMAKE_VERBOSE_MAKEFILE=ON -H. -Bbuild-u21.10
24 - run: make -C build-u21.10 tests_build_all
25 - run: make CTEST_OUTPUT_ON_FAILURE=1 test -C build-u21.10
26 - run: make -C build-u21.10
27 full-u18.04-bionic:
28 docker:
29 - image: mrpt/mrpt-build-env:full-bionic
30 steps:
31 - checkout
32 - run: git submodule sync
33 - run: git submodule update --init --recursive
34 - run: cmake -DMRPT_BUILD_EXAMPLES=On -DMRPT_BUILD_TESTING=On -DMRPT_ALLOW_LGPLV3=ON -DCMAKE_VERBOSE_MAKEFILE=ON -H. -Bbuild-u18.04
35 - run: make -C build-u18.04 tests_build_all
36 - run: make CTEST_OUTPUT_ON_FAILURE=1 test -C build-u18.04
37 - run: make -C build-u18.04
38 clang-u18.04-bionic:
39 docker:
40 - image: mrpt/mrpt-build-env:full-bionic
41 steps:
42 - checkout
43 - run: git submodule sync
44 - run: git submodule update --init --recursive
45 - run:
46 name: Generate cmake files
47 command: cmake -DMRPT_BUILD_EXAMPLES=On -DMRPT_BUILD_TESTING=On -DMRPT_ENABLE_COVERAGE=On -DMRPT_ALLOW_LGPLV3=ON -DCMAKE_VERBOSE_MAKEFILE=ON -H. -Bbuild-u18.04-clang
48 environment:
49 CC: /usr/bin/clang-6.0
50 CXX: /usr/bin/clang++-6.0
51 - run: make -C build-u18.04-clang tests_build_all
52 - run: make CTEST_OUTPUT_ON_FAILURE=1 test -C build-u18.04-clang
53 - run: make -C build-u18.04-clang
54 headless-u18.04-bionic:
55 docker:
56 - image: mrpt/mrpt-build-env:headless-bionic
57 steps:
58 - checkout
59 - run: git submodule sync
60 - run: git submodule update --init --recursive
61 - run: cmake -DMRPT_BUILD_EXAMPLES=On -DMRPT_BUILD_TESTING=On -DMRPT_ENABLE_COVERAGE=On -DMRPT_ALLOW_LGPLV3=ON -DCMAKE_VERBOSE_MAKEFILE=ON -H. -Bbuild-u18.04-headless
62 - run: make -C build-u18.04-headless tests_build_all
63 - run: make CTEST_OUTPUT_ON_FAILURE=1 test -C build-u18.04-headless
64 - run: make -C build-u18.04-headless
65 minimal-u18.04-bionic:
66 docker:
67 - image: mrpt/mrpt-build-env:minimal-bionic
68 steps:
69 - checkout
70 - run: git submodule sync
71 - run: git submodule update --init --recursive
72 - run: cmake -DMRPT_BUILD_EXAMPLES=On -DMRPT_BUILD_TESTING=On -DMRPT_ENABLE_COVERAGE=On -DMRPT_DISABLE_PYTHON_BINDINGS=On -DMRPT_EIGEN_USE_EMBEDDED_VERSION=On -DMRPT_ALLOW_LGPLV3=ON -DCMAKE_VERBOSE_MAKEFILE=ON -H. -Bbuild-u18.04-minimal
73 - run: make -C build-u18.04-minimal tests_build_all
74 - run: make CTEST_OUTPUT_ON_FAILURE=1 test -C build-u18.04-minimal
75 - run: make -C build-u18.04-minimal
76 clang-format-lint:
77 docker:
78 - image: mrpt/mrpt-build-env:full-bionic
79 steps:
80 - checkout
81 - run: apt install clang-format-14 -yq
82 - run: git submodule sync
83 - run: git submodule update --init --recursive
84 - run: pip3 install --user -r .circleci/python_reqs.txt
85 - run:
86 name: Run lint task
87 command: bash .circleci/check_style.sh
88 environment:
89 TASK: lint_all
90 macos-12.0.0:
91 macos:
92 xcode: "12.0.0"
93 working_directory: /Users/distiller/project
94 steps:
95 - checkout
96 - run: git submodule sync
97 - run: git submodule update --init --recursive
98 - run: brew update
99 - run: brew upgrade
100 - run: brew install cmake
101 - run: brew install boost
102 - run: brew install nasm
103 - run: cmake -DMRPT_BUILD_EXAMPLES=On -DMRPT_BUILD_TESTING=On -DMRPT_ENABLE_COVERAGE=On -DMRPT_DISABLE_PYTHON_BINDINGS=On -DMRPT_EIGEN_USE_EMBEDDED_VERSION=On -DCMAKE_VERBOSE_MAKEFILE=ON -DMRPT_ALLOW_LGPLV3=ON -H. -Bbuild-osx
104 - run: make -j2 -C build-osx tests_build_all
105 - run: make -j2 CTEST_OUTPUT_ON_FAILURE=1 test -C build-osx
106 - run: make -j2 -C build-osx
107 workflows:
108 version: 2
109 build:
110 jobs:
111 - full-u20.04-focal-codecov
112 - full-u21.10-impish
113 - clang-u18.04-bionic
114 - headless-u18.04-bionic
115 - minimal-u18.04-bionic
116 - clang-format-lint
117 - macos-12.0.0