light/.drone.yml

104 lines
1.9 KiB
YAML

kind: pipeline
type: docker
name: build_linux_clang_amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: ubuntu:latest
commands:
- apt update
- apt-get install -y build-essential cmake clang gcc g++ python3 python3-pip python3.12-venv
- python3 -m venv /opt/venv
- . /opt/venv/bin/activate
- pip --version
- python --version
- pip install conan==2.5.0
- conan --version
- export CONAN_REVISIONS_ENABLED=1
- export CC=$(which clang)
- export CXX=$(which clang++)
- conan profile detect
- cp ./tools/conan/profiles/linux_clang_amd64 $(conan profile path default)
# - conan remote add light https://artifactory.light7734.com/artifactory/api/conan/conan
- conan install . --build=missing
- conan build .
- build/Release/modules/light
---
kind: pipeline
type: docker
name: build_linux_gcc_amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: ubuntu:latest
commands:
- apt update
- apt-get install -y build-essential cmake clang gcc g++ python3 python3-pip python3.12-venv
- python3 -m venv /opt/venv
- . /opt/venv/bin/activate
- pip --version
- python --version
- pip install conan==2.5.0
- conan --version
- export CONAN_REVISIONS_ENABLED=1
- export CC=$(which gcc)
- export CXX=$(which g++)
- conan profile detect
- cp ./tools/conan/profiles/linux_gcc_amd64 $(conan profile path default)
# - conan remote add light https://artifactory.light7734.com/artifactory/api/conan/conan
- conan install . --build=missing
- conan build .
- build/Release/modules/light
---
kind: pipeline
type: docker
name: static_analysis
platform:
os: linux
arch: amd64
steps:
- name: analysis
image: ubuntu:latest
commands:
- echo "[TODO] Implement static analysis"
---
kind: pipeline
type: docker
name: code_coverage
platform:
os: linux
arch: amd64
steps:
- name: analysis
image: ubuntu:latest
commands:
- echo "[TODO] Implement code coverage"