/
config.yml
72 lines (71 loc) · 2.35 KB
/
config.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: 2
jobs:
full:
docker:
- image: mrpt/mrpt-build-env:full-bionic
steps:
- checkout
- run: cmake -DBUILD_EXAMPLES=On -DBUILD_TESTING=On -DENABLE_COVERAGE=On -H. -Bbuild
- run: make -C build tests_build_all
- run: make CTEST_OUTPUT_ON_FAILURE=1 test -C build
- run: make gcov -C build
- run: make -C build
- run: bash <(curl -s https://codecov.io/bash) -X gcov -y .codecov.yml -s build
clang:
docker:
- image: mrpt/mrpt-build-env:full-bionic
steps:
- checkout
- run:
name: Generate cmake files
command: cmake -DBUILD_EXAMPLES=On -DBUILD_TESTING=On -DENABLE_COVERAGE=On -H. -Bbuild
environment:
CC: /usr/bin/clang-6.0
CXX: /usr/bin/clang++-6.0
- run: make -C build tests_build_all
- run: make CTEST_OUTPUT_ON_FAILURE=1 test -C build
- run: make gcov -C build
- run: make -C build
- run: bash <(curl -s https://codecov.io/bash) -X gcov -y .codecov.yml -s build
headless:
docker:
- image: mrpt/mrpt-build-env:headless-bionic
steps:
- checkout
- run: cmake -DBUILD_EXAMPLES=On -DBUILD_TESTING=On -DENABLE_COVERAGE=On -H. -Bbuild
- run: make -C build tests_build_all
- run: make CTEST_OUTPUT_ON_FAILURE=1 test -C build
- run: make gcov -C build
- run: make -C build
- run: bash <(curl -s https://codecov.io/bash) -X gcov -y .codecov.yml -s build
minimal:
docker:
- image: mrpt/mrpt-build-env:minimal-bionic
steps:
- checkout
- run: cmake -DBUILD_EXAMPLES=On -DBUILD_TESTING=On -DENABLE_COVERAGE=On -DDISABLE_PYTHON_BINDINGS=On -DEIGEN_USE_EMBEDDED_VERSION=On -H. -Bbuild
- run: make -C build tests_build_all
- run: make CTEST_OUTPUT_ON_FAILURE=1 test -C build
- run: make gcov -C build
- run: make -C build
- run: bash <(curl -s https://codecov.io/bash) -X gcov -y .codecov.yml -s build
clang-format-lint:
docker:
- image: mrpt/mrpt-build-env:full-bionic
steps:
- checkout
- run: pip install --user -r travis/python_reqs.txt
- run:
name: Run lint task
command: bash travis/check_style.sh
environment:
TASK: lint
workflows:
version: 2
build:
jobs:
- full
- headless
- minimal
- clang
- clang-format-lint