Files
openobserve/deploy/build/buildspec-test.yml
T

34 lines
1.1 KiB
YAML

version: 0.2
phases:
pre_build:
commands:
- apt-get update
- apt-get install -y bc
- apt-get install -y zip unzip wget
- wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip
- unzip protoc-21.12-linux-x86_64.zip -d protoc && cp protoc/bin/protoc /usr/local/bin/ && cp -r protoc/include/google /usr/local/include/
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- . "$HOME/.cargo/env"
- rustup toolchain install nightly-2025-11-11
- rustup toolchain list
- rustup default nightly-2025-11-11
- rustup component add clippy llvm-tools
- export RUSTFLAGS='-C target-cpu=native'
- rm -rf ~/.cargo/registry
build:
commands:
# Increase swap file size
- fallocate -l 32G /swapfile
- chmod 600 /swapfile
- mkswap /swapfile || true
- swapon /swapfile || true
- pwd
- mkdir -p web/dist
- touch web/dist/index.html
# run tests
- cargo --config net.git-fetch-with-cli=true clippy -- -D warnings
- ./coverage.sh