view .gitlab-ci.yml @ 5468:053f1fc12545 mercurial-4.6

test-compat: merge mercurial-4.7 into mercurial-4.6
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 31 Jul 2020 19:19:13 +0800
parents 88f9bbba392d d04a9bf34b79
children 15406dfa60e1
line wrap: on
line source

before_script:
    # Mercurial 4.6 lacks sparserevlog support, so nearly all test-check-*.t
    # tests fail because of a missing repo requirement.
    # They are not essential, so let's simply skip them.
    - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt)

flake8:
    image: octobus/ci-py2-hgext3rd
    script:
        - hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' -X hgext3rd/evolve/thirdparty | xargs -0 flake8

tests-py2-cext:
    image: octobus/ci-py2-hgext3rd
    script:
        - hg pull -R /ci/repos/mercurial/
        - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
        - hg -R /ci/repos/mercurial/ update "$hg_rev"
        - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()')
        - (cd tests; /ci/repos/mercurial/tests/run-tests.py -j $jobs --color=always --blacklist /tmp/check-tests.txt)

tests-py2-pure:
    image: octobus/ci-py2-hgext3rd
    script:
        - hg pull -R /ci/repos/mercurial/
        - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
        - hg -R /ci/repos/mercurial/ update "$hg_rev"
        - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()')
        - (cd tests; /ci/repos/mercurial/tests/run-tests.py -j $jobs --color=always --pure --blacklist /tmp/check-tests.txt)