Run e2e tests again dynamically linked dev binary

This makes the build much faster.
This commit is contained in:
2022-06-17 01:45:14 +02:00
parent c56765ce26
commit addff12c17
2 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ rust-version = "1.57"
license = "GPL-3.0-only"
[profile.e2e-tests]
inherits = "release"
inherits = "dev"
[lib]
name = "grm"

View File

@@ -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