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"
|
license = "GPL-3.0-only"
|
||||||
|
|
||||||
[profile.e2e-tests]
|
[profile.e2e-tests]
|
||||||
inherits = "release"
|
inherits = "dev"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "grm"
|
name = "grm"
|
||||||
|
|||||||
4
Justfile
4
Justfile
@@ -36,7 +36,7 @@ test-binary:
|
|||||||
env \
|
env \
|
||||||
GITHUB_API_BASEURL=http://rest:5000/github \
|
GITHUB_API_BASEURL=http://rest:5000/github \
|
||||||
GITLAB_API_BASEURL=http://rest:5000/gitlab \
|
GITLAB_API_BASEURL=http://rest:5000/gitlab \
|
||||||
cargo build --target {{static_target}} --profile e2e-tests --features=static-build
|
cargo build --profile e2e-tests
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cargo install --path .
|
cargo install --path .
|
||||||
@@ -64,7 +64,7 @@ test-e2e +tests=".": test-binary
|
|||||||
&& docker-compose build \
|
&& docker-compose build \
|
||||||
&& docker-compose run \
|
&& docker-compose run \
|
||||||
--rm \
|
--rm \
|
||||||
-v $PWD/../target/{{static_target}}/e2e-tests/grm:/grm \
|
-v $PWD/../target/e2e-tests/grm:/grm \
|
||||||
pytest \
|
pytest \
|
||||||
"GRM_BINARY=/grm ALTERNATE_DOMAIN=alternate-rest python3 -m pytest -p no:cacheprovider --color=yes "$@"" \
|
"GRM_BINARY=/grm ALTERNATE_DOMAIN=alternate-rest python3 -m pytest -p no:cacheprovider --color=yes "$@"" \
|
||||||
&& docker-compose rm --stop -f
|
&& docker-compose rm --stop -f
|
||||||
|
|||||||
Reference in New Issue
Block a user