Run e2e tests again dynamically linked dev binary
This makes the build much faster.
This commit is contained in:
@@ -28,7 +28,7 @@ rust-version = "1.57"
|
||||
license = "GPL-3.0-only"
|
||||
|
||||
[profile.e2e-tests]
|
||||
inherits = "release"
|
||||
inherits = "dev"
|
||||
|
||||
[lib]
|
||||
name = "grm"
|
||||
|
||||
4
Justfile
4
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
|
||||
|
||||
Reference in New Issue
Block a user