Compare commits
10 Commits
ec773298fd
...
3663923a64
Author | SHA1 | Date |
---|---|---|
light7734 | 3663923a64 | |
light7734 | f476df177c | |
light7734 | a4d5b94721 | |
light7734 | 076d91adbe | |
light7734 | 63f0983274 | |
light7734 | 0b3f88cd2c | |
light7734 | a5e1712091 | |
light7734 | 00abd0c8d0 | |
light7734 | 59cd6db90d | |
light7734 | 6c9e2426f6 |
35
.drone.yml
35
.drone.yml
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue