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
|
- 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:
|
||||||
|
|
Loading…
Reference in New Issue