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 - name: conan
host: host:
path: $HOME/.conan2/ path: /root/.conan2/
services: services:
@ -31,7 +31,7 @@ services:
path: /var/run/ path: /var/run/
steps: steps:
- name: setup_environment - name: build image
image: docker:latest image: docker:latest
volumes: volumes:
- name: dockersock - name: dockersock
@ -41,7 +41,7 @@ steps:
- docker build -t ubuntu_amd64 -f ./tools/docker/linux_amd64 . - docker build -t ubuntu_amd64 -f ./tools/docker/linux_amd64 .
- docker images - docker images
- name: log_info - name: environment info
image: ubuntu_amd64:latest image: ubuntu_amd64:latest
pull: if-not-exists pull: if-not-exists
volumes: volumes:
@ -55,70 +55,69 @@ steps:
- pip --version - pip --version
- python3 --version - python3 --version
- conan --version - conan --version
- cmake --version
- gcc --version - gcc --version
- g++ --version - g++ --version
- clang --version - clang --version
- 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:
- name: py - name: py
path: /opt/venv/ path: /opt/venv/
- name: conan - name: conan
path: $HOME/.conan2 path: /root/.conan2
commands: commands:
- . /opt/venv/bin/activate - . /opt/venv/bin/activate
- rm -rvf ./build - rm -rvf ./build
- export CC=$(which gcc) - export CC=$(which gcc)
- export CXX=$(which g++) - export CXX=$(which g++)
- export CONAN_PROFILE="$(pwd)/tools/conan/profiles/linux_gcc_amd64"
- conan profile detect - conan install . --build=missing -pr=$$CONAN_PROFILE
- cp ./tools/conan/profiles/linux_gcc_amd64 $(conan profile path default) - conan build . -pr=$$CONAN_PROFILE
- conan install . --build=missing
- 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:
- name: py - name: py
path: /opt/venv/ path: /opt/venv/
- name: conan - name: conan
path: $HOME/.conan2 path: /root/.conan2
commands: commands:
- . /opt/venv/bin/activate - . /opt/venv/bin/activate
- rm -rvf ./build - rm -rvf ./build
- export CC=$(which clang) - export CC=$(which clang)
- export CXX=$(which clang++) - export CXX=$(which clang++)
- export CONAN_PROFILE="$(pwd)/tools/conan/profiles/linux_gcc_amd64"
- conan profile detect - conan install . --build=missing -pr=$$CONAN_PROFILE
- cp ./tools/conan/profiles/linux_clang_amd64 $(conan profile path default) - conan build . -pr=$$CONAN_PROFILE
- conan install . --build=missing
- 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: