From addff12c17b00967da040d761d6dcbf9f41ba409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 17 Jun 2022 01:45:14 +0200 Subject: [PATCH] Run e2e tests again dynamically linked dev binary This makes the build much faster. --- Cargo.toml | 2 +- Justfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 86e463e..c744343 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ rust-version = "1.57" license = "GPL-3.0-only" [profile.e2e-tests] -inherits = "release" +inherits = "dev" [lib] name = "grm" diff --git a/Justfile b/Justfile index d5071da..d90aaa3 100644 --- a/Justfile +++ b/Justfile @@ -36,7 +36,7 @@ test-binary: env \ GITHUB_API_BASEURL=http://rest:5000/github \ GITLAB_API_BASEURL=http://rest:5000/gitlab \ - cargo build --target {{static_target}} --profile e2e-tests --features=static-build + cargo build --profile e2e-tests install: cargo install --path . @@ -64,7 +64,7 @@ test-e2e +tests=".": test-binary && docker-compose build \ && docker-compose run \ --rm \ - -v $PWD/../target/{{static_target}}/e2e-tests/grm:/grm \ + -v $PWD/../target/e2e-tests/grm:/grm \ pytest \ "GRM_BINARY=/grm ALTERNATE_DOMAIN=alternate-rest python3 -m pytest -p no:cacheprovider --color=yes "$@"" \ && docker-compose rm --stop -f