# HG changeset patch # User Pierre-Yves David # Date 1574074019 -3600 # Node ID edc29a909339e6dfe1197b4a06d4e56a12085615 # Parent 8ced373682c455b2770f36545a0ccd6ed8377b42 heptapod-ci: simpler CI We have a mercurial clone available in the docker image now. This will same some time to avoid a full Mercurial clone for each run. diff -r 8ced373682c4 -r edc29a909339 .gitlab-ci.yml --- a/.gitlab-ci.yml Sun Nov 17 01:23:48 2019 +0100 +++ b/.gitlab-ci.yml Mon Nov 18 11:46:59 2019 +0100 @@ -6,39 +6,27 @@ tests-py2-cext: image: octobus/ci-py2-hgext3rd 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 --color=always) - - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"` + - hg pull -R /ci/repos/mercurial/ + - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` + - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always) tests-py2-pure: image: octobus/ci-py2-hgext3rd 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 --color=always --pure) - - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"` + - hg pull -R /ci/repos/mercurial/ + - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` + - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure) tests-py3-cext: image: octobus/ci-py3-hgext3rd 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; python3 /tmp/mercurial-clone-`hg log -r . -T "{node}"`/tests/run-tests.py --color=always) - - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"` + - hg pull -R /ci/repos/mercurial/ + - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` + - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always) tests-py3-pure: image: octobus/ci-py3-hgext3rd 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; python3 /tmp/mercurial-clone-`hg log -r . -T "{node}"`/tests/run-tests.py --color=always --pure) - - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"` + - hg pull -R /ci/repos/mercurial/ + - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` + - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure)