Add Cargo geiger and audit to CI
@@ -8,7 +8,7 @@ before_install:
- sudo add-apt-repository universe
- sudo apt-get -qq update
- sudo apt-get install -y libsqlite3-dev postgresql-client-11 postgresql-server-dev-11 libpq-dev iperf3 python3-pip bridge-utils wireguard linux-source linux-headers-$(uname -r) curl git libssl-dev pkg-config build-essential ipset python3-setuptools python3-wheel
- - command -v cross 1>/dev/null || cargo install cross
+ - cargo install cross --force
- psql -c 'create database test;' -U postgres
env:
@@ -45,6 +45,8 @@ matrix:
- cargo fmt --all -- --check
# to stop opt level 3 from sneaking in
- "grep -q 'opt-level = \"z\"' Cargo.toml"
+ - "cargo install cargo-audit --force && cargo audit"
+ - "cargo install cargo-geiger --force && cargo geiger"
- script: ./integration-tests/rita.sh
env: INITIAL_POLL_INTERVAL=5 BACKOFF_FACTOR="1.5" VERBOSE=1 POSTGRES_USER=postgres POSTGRES_BIN=/usr/lib/postgresql/9.6/bin/postgres POSTGRES_DATABASE=/var/ramfs/postgresql/9.6/main POSTGRES_CONFIG=/etc/postgresql/9.6/main/postgresql.conf
- script: ./integration-tests/rita.sh
