.gitlab-ci.yml
branchmercurial-5.1
changeset 4967 844c9eb2400f
parent 4966 4f3c87584a4a
child 4974 3bcdaf298c7a
child 4986 1214f3d085a9
equal deleted inserted replaced
4905:f3e39a354378 4967:844c9eb2400f
     1 flake8:
     1 flake8:
       
     2     image: octobus/ci-py2-hgext3rd
     2     script:
     3     script:
     3         - pip install --user flake8
     4         - hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' -X hgext3rd/evolve/thirdparty | xargs -0 flake8
     4         - hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' -X hgext3rd/evolve/thirdparty | xargs -0 ~/.local/bin/flake8
     5 
     5 tests:
     6 tests-py2-cext:
       
     7     image: octobus/ci-py2-hgext3rd
     6     script:
     8     script:
     7         - echo $PWD
     9         - hg pull -R /ci/repos/mercurial/
     8         - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
    10         - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
     9         - hg clone https://mirror.octobus.net/hg/ /tmp/mercurial-clone-`hg log -r . -T "{node}"` --config share.pool=/tmp/
    11         - hg -R /ci/repos/mercurial/ update "$hg_rev"
    10         - hg -R /tmp/mercurial-clone-`hg log -r . -T "{node}"` update `hg log -r . -T '{branch}'`
    12         - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always)
    11         - (cd tests; /tmp/mercurial-clone-`hg log -r . -T "{node}"`/tests/run-tests.py -j 3)
    13 
    12         - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
    14 tests-py2-pure:
       
    15     image: octobus/ci-py2-hgext3rd
       
    16     script:
       
    17         - hg pull -R /ci/repos/mercurial/
       
    18         - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
       
    19         - hg -R /ci/repos/mercurial/ update "$hg_rev"
       
    20         - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure)
       
    21 
       
    22 tests-py3-cext:
       
    23     image: octobus/ci-py3-hgext3rd
       
    24     script:
       
    25         - hg pull -R /ci/repos/mercurial/
       
    26         - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
       
    27         - hg -R /ci/repos/mercurial/ update "$hg_rev"
       
    28         - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always)
       
    29 
       
    30 tests-py3-pure:
       
    31     image: octobus/ci-py3-hgext3rd
       
    32     script:
       
    33         - hg pull -R /ci/repos/mercurial/
       
    34         - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
       
    35         - hg -R /ci/repos/mercurial/ update "$hg_rev"
       
    36         - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure)