Compare commits

...

10 Commits

Author SHA1 Message Date
light7734 3663923a64
cicd: fix env variable expression
continuous-integration/drone Build is failing Details
2024-10-14 23:27:07 +03:30
light7734 f476df177c
cicd: minor adjustments 2024-10-14 23:24:48 +03:30
light7734 a4d5b94721
cicd: minor adjustments 2024-10-14 23:23:19 +03:30
light7734 076d91adbe
cicd: minor adjustments 2024-10-14 23:21:17 +03:30
light7734 63f0983274
cicd: revert some adjustment 2024-10-14 23:18:30 +03:30
light7734 0b3f88cd2c
cicd: minor adjustments 2024-10-14 23:17:20 +03:30
light7734 a5e1712091
cicd: minor adjustments 2024-10-14 23:14:05 +03:30
light7734 00abd0c8d0
cicd: minor adjustments 2024-10-14 23:09:03 +03:30
light7734 59cd6db90d
cicd: add -e to conan profile detect 2024-10-14 21:27:54 +03:30
light7734 6c9e2426f6
cicd: change $HOME to /root/ 2024-10-14 21:25:14 +03:30
1 changed files with 17 additions and 18 deletions

View File

@ -19,7 +19,7 @@ volumes:
- name: conan
host:
path: $HOME/.conan2/
path: /root/.conan2/
services:
@ -31,7 +31,7 @@ services:
path: /var/run/
steps:
- name: setup_environment
- name: build image
image: docker:latest
volumes:
- name: dockersock
@ -41,7 +41,7 @@ steps:
- docker build -t ubuntu_amd64 -f ./tools/docker/linux_amd64 .
- docker images
- name: log_info
- name: environment info
image: ubuntu_amd64:latest
pull: if-not-exists
volumes:
@ -55,70 +55,69 @@ steps:
- pip --version
- python3 --version
- conan --version
- cmake --version
- gcc --version
- g++ --version
- clang --version
- clang++ --version
- clang-tidy --version
- name: build_gcc
- name: build gcc
image: ubuntu_amd64:latest
pull: if-not-exists
volumes:
- name: py
path: /opt/venv/
- name: conan
path: $HOME/.conan2
path: /root/.conan2
commands:
- . /opt/venv/bin/activate
- rm -rvf ./build
- export CC=$(which gcc)
- export CXX=$(which g++)
- export CONAN_PROFILE="$(pwd)/tools/conan/profiles/linux_gcc_amd64"
- conan profile detect
- cp ./tools/conan/profiles/linux_gcc_amd64 $(conan profile path default)
- conan install . --build=missing
- conan build .
- conan install . --build=missing -pr=$$CONAN_PROFILE
- conan build . -pr=$$CONAN_PROFILE
- ./build/Release/modules/light/light
- name: build_clang
- name: build clang
image: ubuntu_amd64:latest
pull: if-not-exists
volumes:
- name: py
path: /opt/venv/
- name: conan
path: $HOME/.conan2
path: /root/.conan2
commands:
- . /opt/venv/bin/activate
- rm -rvf ./build
- export CC=$(which clang)
- export CXX=$(which clang++)
- export CONAN_PROFILE="$(pwd)/tools/conan/profiles/linux_gcc_amd64"
- conan profile detect
- cp ./tools/conan/profiles/linux_clang_amd64 $(conan profile path default)
- conan install . --build=missing
- conan build .
- conan install . --build=missing -pr=$$CONAN_PROFILE
- conan build . -pr=$$CONAN_PROFILE
- ./build/Release/modules/light/light
- name: static_analysis
- name: static analysis
image: ubuntu_amd64:latest
pull: if-not-exists
commands:
- echo "[TODO] Implement static analysis"
- name: run_tests
- name: run tests
image: ubuntu_amd64:latest
pull: if-not-exists
commands:
- echo "[TODO] Implement tests"
- ./build/Release/modules/light/light
- name: report_coverage
- name: report coverage
image: ubuntu_amd64:latest
pull: if-not-exists
commands: