Patchwork D8014: heptapod-ci: also run the dedicated rust test for the rust code

login
register
mail settings
Submitter phabricator
Date Jan. 26, 2020, 7:06 p.m.
Message ID <differential-rev-PHID-DREV-bpdhf7srxbvsm45sl44i-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/44677/
State Superseded
Headers show

Comments

phabricator - Jan. 26, 2020, 7:06 p.m.
marmoute created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The Rust code has various standard rust test that are fast to run. So let's run them.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D8014

AFFECTED FILES
  contrib/heptapod-ci.yml

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mjpieters, mercurial-devel

Patch

diff --git a/contrib/heptapod-ci.yml b/contrib/heptapod-ci.yml
--- a/contrib/heptapod-ci.yml
+++ b/contrib/heptapod-ci.yml
@@ -23,3 +23,13 @@ 
     <<: *runtests
     variables:
         PYTHON: python3
+
+rust-cargo-test-py2: &rust_cargo_test
+    script:
+        - echo "python used, $PYTHON"
+        - make rust-tests
+
+rust-cargo-test-py3:
+    <<: *rust_cargo_test
+    variables:
+        PYTHON: python3