Skip to content
Snippets Groups Projects
Commit 862e93be authored by Georges Racinet's avatar Georges Racinet
Browse files

CI/CD: running pure Rust tests

A simple `cargo test`.

Because of the dependencies, we had to provide a new base image
for this (we could have used heptapod-gitaly, but it is unsatisfactory
to rely on a huge image when much less is needed).
parent 69cb7195
No related branches found
No related tags found
3 merge requests!151heptapod#743: making 0.36 the new stable,!144RHGitaly: implement CommitService.ListCommitsByOid,!140Bootstrapping RHGitaly
......@@ -34,7 +34,7 @@
- if: '$CI_COMMIT_HG_BRANCH == "default"'
- when: never
.tests:
.pytests:
before_script:
# TODO switch to clone/update (chainsaw), but a first attempt cloning
# in ./py-heptapod led to shadowing problems and bad applied hg config.
......@@ -50,7 +50,14 @@
script:
- ./run-all-tests
tests-rust:
stage: main
image: ${BASE_IMAGES_COLLECTION}/hgitaly-rust:${CI_COMMIT_HG_BRANCH}
script:
- ci/prepare-rhgitaly
- cargo test --manifest-path rust/Cargo.toml
tests-hg-current:
variables:
HGITALY_TESTS_HG_EXE_PATH: /usr/local/bin/hg
extends:
......@@ -53,10 +60,10 @@
tests-hg-current:
variables:
HGITALY_TESTS_HG_EXE_PATH: /usr/local/bin/hg
extends:
- .tests
- .pytests
stage: main
image: ${BASE_IMAGES_MERCURIAL}/hg-current:${BASE_IMAGES_TAG}
gitaly-comparison:
extends:
......@@ -58,9 +65,9 @@
stage: main
image: ${BASE_IMAGES_MERCURIAL}/hg-current:${BASE_IMAGES_TAG}
gitaly-comparison:
extends:
- .tests
- .pytests
stage: compat
image: ${BASE_IMAGES_COLLECTION}/heptapod-gitaly:${CI_COMMIT_HG_BRANCH}
variables:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment