Mercurial > evolve
comparison .gitlab-ci.yml @ 5371:02804d8bac31
ci: use a script template to pull and update /ci/repos/mercurial/
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 27 Jun 2020 01:33:31 +0800 |
parents | 06b5e43ac29c |
children | 98e2613d797d |
comparison
equal
deleted
inserted
replaced
5370:06b5e43ac29c | 5371:02804d8bac31 |
---|---|
1 .prepare_hg: &prepare_hg | |
2 - hg pull -R /ci/repos/mercurial/ | |
3 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg identify --branch)") | |
4 - hg -R /ci/repos/mercurial/ update "$hg_rev" | |
5 | |
1 pytype: | 6 pytype: |
2 image: octobus/ci-py3-hgext3rd | 7 image: octobus/ci-py3-hgext3rd |
3 script: | 8 script: |
4 - hg pull -R /ci/repos/mercurial/ | 9 - *prepare_hg |
5 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | |
6 - hg -R /ci/repos/mercurial/ update "$hg_rev" | |
7 - pytype --version | 10 - pytype --version |
8 - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()') | 11 - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()') |
9 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true | 12 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true |
10 when: manual | 13 when: manual |
11 | 14 |
18 .runtests_template: &runtests | 21 .runtests_template: &runtests |
19 image: octobus/ci-$PY-hgext3rd | 22 image: octobus/ci-$PY-hgext3rd |
20 before_script: | 23 before_script: |
21 - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt) | 24 - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt) |
22 script: | 25 script: |
23 - hg pull -R /ci/repos/mercurial/ | 26 - *prepare_hg |
24 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | |
25 - hg -R /ci/repos/mercurial/ update "$hg_rev" | |
26 - ("$PYTHON" --version) | 27 - ("$PYTHON" --version) |
27 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) | 28 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) |
28 | 29 |
29 checks-py2: | 30 checks-py2: |
30 <<: *runtests | 31 <<: *runtests |