Compare commits
No commits in common. "3663923a64af19b181144895140befce144522f8" and "ec773298fdd8dc23ee03902e62290a8ebefc78f7" have entirely different histories.
3663923a64
...
ec773298fd
35
.drone.yml
35
.drone.yml
|
@ -19,7 +19,7 @@ volumes:
|
||||||
|
|
||||||
- name: conan
|
- name: conan
|
||||||
host:
|
host:
|
||||||
path: /root/.conan2/
|
path: $HOME/.conan2/
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
@ -31,7 +31,7 @@ services:
|
||||||
path: /var/run/
|
path: /var/run/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build image
|
- name: setup_environment
|
||||||
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: environment info
|
- name: log_info
|
||||||
image: ubuntu_amd64:latest
|
image: ubuntu_amd64:latest
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -55,69 +55,70 @@ 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: /root/.conan2
|
path: $HOME/.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 install . --build=missing -pr=$$CONAN_PROFILE
|
- conan profile detect
|
||||||
- conan build . -pr=$$CONAN_PROFILE
|
- cp ./tools/conan/profiles/linux_gcc_amd64 $(conan profile path default)
|
||||||
|
- 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: /root/.conan2
|
path: $HOME/.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 install . --build=missing -pr=$$CONAN_PROFILE
|
- conan profile detect
|
||||||
- conan build . -pr=$$CONAN_PROFILE
|
- cp ./tools/conan/profiles/linux_clang_amd64 $(conan profile path default)
|
||||||
|
- 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:
|
||||||
|
|
Loading…
Reference in New Issue