From 557dc60f842523e98ced247232e5bb9dad82969e Mon Sep 17 00:00:00 2001 From: Olivier Date: Tue, 20 Jul 2021 11:32:37 +0100 Subject: [PATCH] Add test suite to CI --- .drone.yml | 13 ++++++++++++- .gitignore | 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d388f49..cf2c8d8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,9 +6,20 @@ platform: arch: arm64 steps: -- name: test +- name: unit tests image: rust:1.49.0-slim commands: - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev - cargo build --verbose --all - cargo test --verbose --all + +- name: test suite + image: rust:1.49.0-slim + commands: + - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev python3.9 python3.9-venv + - cargo install --path yama + - cargo install --path datman + - python3.9 -m venv testsuite/.venv + - ./testsuite/.venv/pip install -e testsuite + - cd testsuite && ./.venv/green + diff --git a/.gitignore b/.gitignore index eb83749..5db7f40 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,6 @@ /testsuite/venv /testsuite/.venv /testsuite/yamadatmantestsuite.egg-info + +__pycache__ +