forked from PRBonn/kiss-icp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
48 lines (43 loc) · 1.14 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
stages:
- format
- build
cache:
paths:
- .cache/pip
#----- format stage --------------------------------------------------------------------------------
black:
image: python:3.8
stage: format
before_script:
- pip install black
script:
- black --line-length 100 --check $CI_PROJECT_DIR
clang-format:
image: ubuntu:22.04
stage: format
before_script:
- apt-get update && apt-get install --no-install-recommends -y clang-format
script:
- clang-format -Werror --dry-run $(find . -regextype posix-extended -regex ".*\.(cpp|hpp|h)")
#----- build stage ---------------------------------------------------------------------------------
pip_package:
image: python:3.8
stage: build
script:
- VERBOSE=1 pip install --verbose ./python/
- kiss_icp_pipeline --version
ros1_noetic:
image: osrf/ros:noetic-desktop-full
stage: build
before_script:
- rm -rf ~/catkin_ws/
- mkdir -p ~/catkin_ws/
- cp -r ${CI_PROJECT_DIR} ~/catkin_ws/src
script:
- cd ~/catkin_ws/
- catkin_make
ros2_humble:
image: osrf/ros:humble-desktop
stage: build
script:
- colcon build --event-handlers console_direct+