gitlab-ci: be bold and try to run the full test in them stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 04 Oct 2019 00:15:53 -0400
branchstable
changeset 4874 ab0d09c93532
parent 4873 91116cec0a67
child 4875 164543ac3277
gitlab-ci: be bold and try to run the full test in them This is a basic version that should work reasonably well. The setup is a bit costly and the cleanup is not guaranteed yet.
.gitlab-ci.yml
--- a/.gitlab-ci.yml	Thu Oct 03 22:46:21 2019 -0400
+++ b/.gitlab-ci.yml	Fri Oct 04 00:15:53 2019 -0400
@@ -2,4 +2,11 @@
     script:
         - pip install --user flake8
         - hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' -X hgext3rd/evolve/thirdparty | xargs -0 ~/.local/bin/flake8
-
+tests:
+    script:
+        - echo $PWD
+        - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
+        - hg clone https://mirror.octobus.net/hg/ /tmp/mercurial-clone-`hg log -r . -T "{node}"` --config share.pool=/tmp/
+        - hg -R /tmp/mercurial-clone-`hg log -r . -T "{node}"` update `hg log -r . -T '{branch}'`
+        - (cd tests; /tmp/mercurial-clone-`hg log -r . -T "{node}"`/tests/run-tests.py -j 3)
+        - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`