cicd: minor adjustments
This commit is contained in:
parent
00abd0c8d0
commit
a5e1712091
26
.drone.yml
26
.drone.yml
|
@ -31,7 +31,7 @@ services:
|
||||||
path: /var/run/
|
path: /var/run/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build_image
|
- name: build image
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
|
@ -62,7 +62,7 @@ steps:
|
||||||
- clang++ --version
|
- clang++ --version
|
||||||
- clang-tidy --version
|
- clang-tidy --version
|
||||||
|
|
||||||
- name: build_gcc
|
- name: build gcc
|
||||||
image: ubuntu_amd64:latest
|
image: ubuntu_amd64:latest
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -77,14 +77,15 @@ steps:
|
||||||
- export CC=$(which gcc)
|
- export CC=$(which gcc)
|
||||||
- export CXX=$(which g++)
|
- export CXX=$(which g++)
|
||||||
|
|
||||||
- conan profile detect -e
|
- conan install . --build=missing \
|
||||||
- cp ./tools/conan/profiles/linux_gcc_amd64 $(conan profile path default)
|
--profile:build=./tools/conan/profiles/linux_gcc_amd64 \
|
||||||
- conan install . --build=missing
|
--profile:host=./tools/conan/profiles/linux_gcc_amd64
|
||||||
|
|
||||||
- conan build .
|
- conan build .
|
||||||
|
|
||||||
- ./build/Release/modules/light/light
|
- ./build/Release/modules/light/light
|
||||||
|
|
||||||
- name: build_clang
|
- name: build clang
|
||||||
image: ubuntu_amd64:latest
|
image: ubuntu_amd64:latest
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -99,27 +100,28 @@ steps:
|
||||||
- export CC=$(which clang)
|
- export CC=$(which clang)
|
||||||
- export CXX=$(which clang++)
|
- export CXX=$(which clang++)
|
||||||
|
|
||||||
- conan profile detect -e
|
- conan install . --build=missing \
|
||||||
- cp ./tools/conan/profiles/linux_clang_amd64 $(conan profile path default)
|
--profile:build=./tools/conan/profiles/linux_clang_amd64 \
|
||||||
- conan install . --build=missing
|
--profile:host=./tools/conan/profiles/linux_clang_amd64
|
||||||
|
|
||||||
- conan build .
|
- conan build .
|
||||||
|
|
||||||
- ./build/Release/modules/light/light
|
- ./build/Release/modules/light/light
|
||||||
|
|
||||||
- name: static_analysis
|
- name: static analysis
|
||||||
image: ubuntu_amd64:latest
|
image: ubuntu_amd64:latest
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
commands:
|
commands:
|
||||||
- echo "[TODO] Implement static analysis"
|
- echo "[TODO] Implement static analysis"
|
||||||
|
|
||||||
- name: run_tests
|
- name: run tests
|
||||||
image: ubuntu_amd64:latest
|
image: ubuntu_amd64:latest
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
commands:
|
commands:
|
||||||
- echo "[TODO] Implement tests"
|
- echo "[TODO] Implement tests"
|
||||||
- ./build/Release/modules/light/light
|
- ./build/Release/modules/light/light
|
||||||
|
|
||||||
- name: report_coverage
|
- name: report coverage
|
||||||
image: ubuntu_amd64:latest
|
image: ubuntu_amd64:latest
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
commands:
|
commands:
|
||||||
|
|
Loading…
Reference in New Issue