Mercurial > evolve
annotate .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 |
rev | line source |
---|---|
5318
88f9bbba392d
test-compat: merge mercurial-4.7 into mercurial-4.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5162
diff
changeset
|
1 before_script: |
88f9bbba392d
test-compat: merge mercurial-4.7 into mercurial-4.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5162
diff
changeset
|
2 # Mercurial 4.6 lacks sparserevlog support, so nearly all test-check-*.t |
88f9bbba392d
test-compat: merge mercurial-4.7 into mercurial-4.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5162
diff
changeset
|
3 # tests fail because of a missing repo requirement. |
88f9bbba392d
test-compat: merge mercurial-4.7 into mercurial-4.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5162
diff
changeset
|
4 # They are not essential, so let's simply skip them. |
88f9bbba392d
test-compat: merge mercurial-4.7 into mercurial-4.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5162
diff
changeset
|
5 - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt) |
88f9bbba392d
test-compat: merge mercurial-4.7 into mercurial-4.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5162
diff
changeset
|
6 |
4873
91116cec0a67
gitlab-ci: basic test with flake8
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
7 flake8: |
4923
d18908c5642a
heptapod-ci: point to our own docker images
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4874
diff
changeset
|
8 image: octobus/ci-py2-hgext3rd |
4873
91116cec0a67
gitlab-ci: basic test with flake8
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
9 script: |
4923
d18908c5642a
heptapod-ci: point to our own docker images
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4874
diff
changeset
|
10 - hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' -X hgext3rd/evolve/thirdparty | xargs -0 flake8 |
4926
0fad1d376814
heptapod-ci: test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4925
diff
changeset
|
11 |
4925
dbeb04ee6679
heptapod-ci: add a --pure variant for the CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4924
diff
changeset
|
12 tests-py2-cext: |
4923
d18908c5642a
heptapod-ci: point to our own docker images
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4874
diff
changeset
|
13 image: octobus/ci-py2-hgext3rd |
4874
ab0d09c93532
gitlab-ci: be bold and try to run the full test in them
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4873
diff
changeset
|
14 script: |
4959
edc29a909339
heptapod-ci: simpler CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4958
diff
changeset
|
15 - hg pull -R /ci/repos/mercurial/ |
4966
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
4959
diff
changeset
|
16 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
4959
diff
changeset
|
17 - hg -R /ci/repos/mercurial/ update "$hg_rev" |
4979
c46f0430a668
test-compat: run tests with -j more than 1
Anton Shestakov <av6@dwimlabs.net>
parents:
4974
diff
changeset
|
18 - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()') |
5318
88f9bbba392d
test-compat: merge mercurial-4.7 into mercurial-4.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5162
diff
changeset
|
19 - (cd tests; /ci/repos/mercurial/tests/run-tests.py -j $jobs --color=always --blacklist /tmp/check-tests.txt) |
4925
dbeb04ee6679
heptapod-ci: add a --pure variant for the CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4924
diff
changeset
|
20 |
dbeb04ee6679
heptapod-ci: add a --pure variant for the CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4924
diff
changeset
|
21 tests-py2-pure: |
dbeb04ee6679
heptapod-ci: add a --pure variant for the CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4924
diff
changeset
|
22 image: octobus/ci-py2-hgext3rd |
dbeb04ee6679
heptapod-ci: add a --pure variant for the CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4924
diff
changeset
|
23 script: |
4959
edc29a909339
heptapod-ci: simpler CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4958
diff
changeset
|
24 - hg pull -R /ci/repos/mercurial/ |
4966
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
4959
diff
changeset
|
25 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
4959
diff
changeset
|
26 - hg -R /ci/repos/mercurial/ update "$hg_rev" |
4979
c46f0430a668
test-compat: run tests with -j more than 1
Anton Shestakov <av6@dwimlabs.net>
parents:
4974
diff
changeset
|
27 - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()') |
5318
88f9bbba392d
test-compat: merge mercurial-4.7 into mercurial-4.6
Anton Shestakov <av6@dwimlabs.net>
parents:
5162
diff
changeset
|
28 - (cd tests; /ci/repos/mercurial/tests/run-tests.py -j $jobs --color=always --pure --blacklist /tmp/check-tests.txt) |