Mercurial > hg > evolve
annotate .gitlab-ci.yml @ 7039:dd518437d4e0 stable
tests: introduce a compat-branches blacklist file
The idea behind this file is to have an easy and obvious mechanism for skipping
some tests on compatibility branches without modifying the test files
themselves or touching .gitlab-ci.yml.
Obviously, each compatibility branch can have different set of tests, and so
the contents of this file can be different on different branches.
This concept had actually existed in core for a long time, see
tests/blacklists/ directory.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 16 Nov 2024 17:59:53 +0400 |
parents | 436dddbb3af5 |
children | a239ea1dfacb 8e68571d2602 457a1e3af162 |
rev | line source |
---|---|
5476
02804d8bac31
ci: use a script template to pull and update /ci/repos/mercurial/
Anton Shestakov <av6@dwimlabs.net>
parents:
5475
diff
changeset
|
1 .prepare_hg: &prepare_hg |
6881
76c2f08b57ee
ci: pull the hg clone explicitly from m-s.o only
Anton Shestakov <av6@dwimlabs.net>
parents:
6855
diff
changeset
|
2 - hg pull -R /ci/repos/mercurial/ https://repo.mercurial-scm.org/hg |
6251
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
3 - hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh "$(hg identify --branch)")} |
5646
98e2613d797d
branching: merge with stable
Pierre-Yves David <pierre-yves.david@octobus.net>
diff
changeset
|
4 - hg -R /ci/repos/mercurial/ update "$hg_branch" |
5669
0e23393dda9c
ci: drop extraneous space
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5646
diff
changeset
|
5 - hg_rev=$(hg log -R /ci/repos/mercurial/ -r . -T '{node}') |
5646
98e2613d797d
branching: merge with stable
Pierre-Yves David <pierre-yves.david@octobus.net>
diff
changeset
|
6 - echo testing with mercurial branch="$hg_branch", revision="$hg_rev" |
5031
0fad1d376814
heptapod-ci: test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5030
diff
changeset
|
7 |
5181
43b448bb1a57
heptapod-ci: add pytype job, allow it to fail for now
Anton Shestakov <av6@dwimlabs.net>
parents:
5091
diff
changeset
|
8 pytype: |
5782
9a16cf248b05
heptapod-ci: new address for base Docker images
Georges Racinet <georges.racinet@octobus.net>
parents:
5767
diff
changeset
|
9 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd |
5181
43b448bb1a57
heptapod-ci: add pytype job, allow it to fail for now
Anton Shestakov <av6@dwimlabs.net>
parents:
5091
diff
changeset
|
10 script: |
5476
02804d8bac31
ci: use a script template to pull and update /ci/repos/mercurial/
Anton Shestakov <av6@dwimlabs.net>
parents:
5475
diff
changeset
|
11 - *prepare_hg |
5475
06b5e43ac29c
ci: print the exact version of pytype
Anton Shestakov <av6@dwimlabs.net>
parents:
5474
diff
changeset
|
12 - pytype --version |
6256 | 13 - jobs=$(python3 -c 'import multiprocessing; print(multiprocessing.cpu_count())') |
5181
43b448bb1a57
heptapod-ci: add pytype job, allow it to fail for now
Anton Shestakov <av6@dwimlabs.net>
parents:
5091
diff
changeset
|
14 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true |
43b448bb1a57
heptapod-ci: add pytype job, allow it to fail for now
Anton Shestakov <av6@dwimlabs.net>
parents:
5091
diff
changeset
|
15 when: manual |
43b448bb1a57
heptapod-ci: add pytype job, allow it to fail for now
Anton Shestakov <av6@dwimlabs.net>
parents:
5091
diff
changeset
|
16 |
5446
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5181
diff
changeset
|
17 variables: |
6256 | 18 PYTHON: python3 |
5446
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5181
diff
changeset
|
19 RUNTEST_ARGS: "" |
5447
4a958a7bb138
ci: set HGMODULEPOLICY when running specific variants
Anton Shestakov <av6@dwimlabs.net>
parents:
5446
diff
changeset
|
20 TEST_HGMODULEPOLICY: "allow" |
5030
dbeb04ee6679
heptapod-ci: add a --pure variant for the CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5029
diff
changeset
|
21 |
5446
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5181
diff
changeset
|
22 .runtests_template: &runtests |
6961
436dddbb3af5
ci: copy CI image versions from default and run tests-py3-* on v2.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6960
diff
changeset
|
23 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd:v2.1 |
5474
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5473
diff
changeset
|
24 before_script: |
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5473
diff
changeset
|
25 - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt) |
4979
ab0d09c93532
gitlab-ci: be bold and try to run the full test in them
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4978
diff
changeset
|
26 script: |
5476
02804d8bac31
ci: use a script template to pull and update /ci/repos/mercurial/
Anton Shestakov <av6@dwimlabs.net>
parents:
5475
diff
changeset
|
27 - *prepare_hg |
6855
d0e2b0101bfc
ci: limit maximum number of open file on python2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
6800
diff
changeset
|
28 - ($PYTHON --version) |
7039
dd518437d4e0
tests: introduce a compat-branches blacklist file
Anton Shestakov <av6@dwimlabs.net>
parents:
6961
diff
changeset
|
29 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON /ci/repos/mercurial/tests/run-tests.py --color=always --blacklist blacklists/compat-branches $RUNTEST_ARGS) |
5446
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5181
diff
changeset
|
30 |
5474
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5473
diff
changeset
|
31 checks-py3: |
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5473
diff
changeset
|
32 <<: *runtests |
6961
436dddbb3af5
ci: copy CI image versions from default and run tests-py3-* on v2.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6960
diff
changeset
|
33 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd:v2.0 |
5474
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5473
diff
changeset
|
34 variables: |
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5473
diff
changeset
|
35 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" |
6961
436dddbb3af5
ci: copy CI image versions from default and run tests-py3-* on v2.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6960
diff
changeset
|
36 CI_CLEVER_CLOUD_FLAVOR: S |
5474
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5473
diff
changeset
|
37 |
5031
0fad1d376814
heptapod-ci: test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5030
diff
changeset
|
38 tests-py3-cext: |
5446
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5181
diff
changeset
|
39 <<: *runtests |
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5181
diff
changeset
|
40 variables: |
5474
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5473
diff
changeset
|
41 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" |
5447
4a958a7bb138
ci: set HGMODULEPOLICY when running specific variants
Anton Shestakov <av6@dwimlabs.net>
parents:
5446
diff
changeset
|
42 TEST_HGMODULEPOLICY: "c" |
5031
0fad1d376814
heptapod-ci: test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5030
diff
changeset
|
43 |
0fad1d376814
heptapod-ci: test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5030
diff
changeset
|
44 tests-py3-pure: |
5446
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5181
diff
changeset
|
45 <<: *runtests |
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5181
diff
changeset
|
46 variables: |
5474
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5473
diff
changeset
|
47 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
5447
4a958a7bb138
ci: set HGMODULEPOLICY when running specific variants
Anton Shestakov <av6@dwimlabs.net>
parents:
5446
diff
changeset
|
48 TEST_HGMODULEPOLICY: "py" |
5091
1214f3d085a9
ci: add job to build and archive the documentation
Boris Feld <boris.feld@octobus.net>
parents:
5071
diff
changeset
|
49 |
6298
e58e4af1a730
ci: run test suite on py2 using hg 6.1, but allow it to fail
Anton Shestakov <av6@dwimlabs.net>
parents:
6297
diff
changeset
|
50 tests-py2-6.1: |
e58e4af1a730
ci: run test suite on py2 using hg 6.1, but allow it to fail
Anton Shestakov <av6@dwimlabs.net>
parents:
6297
diff
changeset
|
51 <<: *runtests |
6961
436dddbb3af5
ci: copy CI image versions from default and run tests-py3-* on v2.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6960
diff
changeset
|
52 image: registry.heptapod.net/mercurial/ci-images/py2-hgext3rd:v1.0 |
6298
e58e4af1a730
ci: run test suite on py2 using hg 6.1, but allow it to fail
Anton Shestakov <av6@dwimlabs.net>
parents:
6297
diff
changeset
|
53 variables: |
6855
d0e2b0101bfc
ci: limit maximum number of open file on python2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
6800
diff
changeset
|
54 PYTHON: prlimit --nofile=1024:1024 python2 |
6298
e58e4af1a730
ci: run test suite on py2 using hg 6.1, but allow it to fail
Anton Shestakov <av6@dwimlabs.net>
parents:
6297
diff
changeset
|
55 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" |
e58e4af1a730
ci: run test suite on py2 using hg 6.1, but allow it to fail
Anton Shestakov <av6@dwimlabs.net>
parents:
6297
diff
changeset
|
56 TEST_HGMODULEPOLICY: "c" |
e58e4af1a730
ci: run test suite on py2 using hg 6.1, but allow it to fail
Anton Shestakov <av6@dwimlabs.net>
parents:
6297
diff
changeset
|
57 HG_BRANCH: 'max(tag("re:^6\.1"))' |
e58e4af1a730
ci: run test suite on py2 using hg 6.1, but allow it to fail
Anton Shestakov <av6@dwimlabs.net>
parents:
6297
diff
changeset
|
58 allow_failure: true |
e58e4af1a730
ci: run test suite on py2 using hg 6.1, but allow it to fail
Anton Shestakov <av6@dwimlabs.net>
parents:
6297
diff
changeset
|
59 |
5091
1214f3d085a9
ci: add job to build and archive the documentation
Boris Feld <boris.feld@octobus.net>
parents:
5071
diff
changeset
|
60 doc: |
6960
184614020008
ci: build docs on v2.1 CI images
Anton Shestakov <av6@dwimlabs.net>
parents:
6881
diff
changeset
|
61 image: registry.heptapod.net/mercurial/ci-images/py3-evolve-doc:v2.1 |
5091
1214f3d085a9
ci: add job to build and archive the documentation
Boris Feld <boris.feld@octobus.net>
parents:
5071
diff
changeset
|
62 script: |
6245
213711ca7653
ci: use the top-level Makefile to build docs
Anton Shestakov <av6@dwimlabs.net>
parents:
6244
diff
changeset
|
63 - make doc |
5091
1214f3d085a9
ci: add job to build and archive the documentation
Boris Feld <boris.feld@octobus.net>
parents:
5071
diff
changeset
|
64 variables: |
5760
1aec5a3be808
docs: properly capitalize LANG value
Anton Shestakov <av6@dwimlabs.net>
parents:
5669
diff
changeset
|
65 LANG: en_US.UTF-8 |
5464
f4d991ac2cd6
ci: add /ci/repos/mercurial to $PYTHONPATH for docs
Anton Shestakov <av6@dwimlabs.net>
parents:
5181
diff
changeset
|
66 PYTHONPATH: "/ci/repos/mercurial:$PYTHONPATH" |
6960
184614020008
ci: build docs on v2.1 CI images
Anton Shestakov <av6@dwimlabs.net>
parents:
6881
diff
changeset
|
67 CI_CLEVER_CLOUD_FLAVOR: S |
5091
1214f3d085a9
ci: add job to build and archive the documentation
Boris Feld <boris.feld@octobus.net>
parents:
5071
diff
changeset
|
68 artifacts: |
1214f3d085a9
ci: add job to build and archive the documentation
Boris Feld <boris.feld@octobus.net>
parents:
5071
diff
changeset
|
69 paths: |
1214f3d085a9
ci: add job to build and archive the documentation
Boris Feld <boris.feld@octobus.net>
parents:
5071
diff
changeset
|
70 - html/* |
5943
c0ed8e574638
ci: build sdist tarball as a post step (only for tagged revisions)
Anton Shestakov <av6@dwimlabs.net>
parents:
5783
diff
changeset
|
71 |
c0ed8e574638
ci: build sdist tarball as a post step (only for tagged revisions)
Anton Shestakov <av6@dwimlabs.net>
parents:
5783
diff
changeset
|
72 sdist: |
c0ed8e574638
ci: build sdist tarball as a post step (only for tagged revisions)
Anton Shestakov <av6@dwimlabs.net>
parents:
5783
diff
changeset
|
73 stage: .post |
c0ed8e574638
ci: build sdist tarball as a post step (only for tagged revisions)
Anton Shestakov <av6@dwimlabs.net>
parents:
5783
diff
changeset
|
74 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd |
c0ed8e574638
ci: build sdist tarball as a post step (only for tagged revisions)
Anton Shestakov <av6@dwimlabs.net>
parents:
5783
diff
changeset
|
75 script: |
c0ed8e574638
ci: build sdist tarball as a post step (only for tagged revisions)
Anton Shestakov <av6@dwimlabs.net>
parents:
5783
diff
changeset
|
76 - python3 setup.py sdist |
c0ed8e574638
ci: build sdist tarball as a post step (only for tagged revisions)
Anton Shestakov <av6@dwimlabs.net>
parents:
5783
diff
changeset
|
77 artifacts: |
c0ed8e574638
ci: build sdist tarball as a post step (only for tagged revisions)
Anton Shestakov <av6@dwimlabs.net>
parents:
5783
diff
changeset
|
78 paths: |
c0ed8e574638
ci: build sdist tarball as a post step (only for tagged revisions)
Anton Shestakov <av6@dwimlabs.net>
parents:
5783
diff
changeset
|
79 - dist/* |
c0ed8e574638
ci: build sdist tarball as a post step (only for tagged revisions)
Anton Shestakov <av6@dwimlabs.net>
parents:
5783
diff
changeset
|
80 only: |
c0ed8e574638
ci: build sdist tarball as a post step (only for tagged revisions)
Anton Shestakov <av6@dwimlabs.net>
parents:
5783
diff
changeset
|
81 - tags |
6251
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
82 |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
83 .windows_runtests_template: &windows_runtests |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
84 before_script: |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
85 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.t > C:/Temp/check-tests.txt' |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
86 script: |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
87 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && tests/testlib/update-hg-repo.sh C:/Temp/hg' |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
88 - > |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
89 C:/MinGW/msys/1.0/bin/sh.exe --login -c ' |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
90 cd "$OLDPWD" && |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
91 evo_branch=$(hg identify --branch) && |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
92 hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh "$evo_branch")} && |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
93 hg -R C:/Temp/hg update "$hg_branch" && |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
94 hg_rev=$(hg log -R C:/Temp/hg -r . -T "\{node\}") && |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
95 echo testing with mercurial branch="$hg_branch", revision="$hg_rev"' |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
96 - Invoke-Expression "$Env:PYTHON --version" |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
97 - echo "$Env:RUNTEST_ARGS" |
7039
dd518437d4e0
tests: introduce a compat-branches blacklist file
Anton Shestakov <av6@dwimlabs.net>
parents:
6961
diff
changeset
|
98 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON C:/Temp/hg/tests/run-tests.py --blacklist tests/blacklists/compat-branches --color=always $RUNTEST_ARGS' |
6251
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
99 |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
100 windows-py3: |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
101 <<: *windows_runtests |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
102 tags: |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
103 - windows |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
104 variables: |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
105 PYTHON: py -3 |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
106 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
107 TEST_HGMODULEPOLICY: "c" |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6246
diff
changeset
|
108 when: manual |
6257
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
109 |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
110 deb: |
6800
75c048fdcd09
ci: upgrade building .debs to v2.0 image
Anton Shestakov <av6@dwimlabs.net>
parents:
6519
diff
changeset
|
111 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd:v2.0 |
6257
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
112 script: |
6518
f1dd77073bca
ci: install lintian in deb job
Anton Shestakov <av6@dwimlabs.net>
parents:
6298
diff
changeset
|
113 - apt-get update && apt-get -yq install devscripts equivs lintian --no-install-recommends |
6257
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
114 - mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
115 - version=$($PYTHON setup.py --version) |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
116 - debversion="$version+hg$(date +%Y%m%d)+$(hg log -r . -T '{node|short}')" |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
117 - make deb-prepare |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
118 - mkdir -p debs |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
119 - mv ../mercurial-evolve_$version.orig debs/mercurial-evolve_$debversion.orig |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
120 - cd debs/mercurial-evolve_$debversion.orig |
6519
89f78b4288e9
ci: set builder full name and email in environment variables
Anton Shestakov <av6@dwimlabs.net>
parents:
6518
diff
changeset
|
121 - debchange --newversion "$debversion-1" "automated build" |
6257
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
122 - debuild --unsigned-source --unsigned-changes --build=binary |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
123 - dpkg --contents ../mercurial-evolve_$debversion-1_all.deb |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
124 variables: |
6519
89f78b4288e9
ci: set builder full name and email in environment variables
Anton Shestakov <av6@dwimlabs.net>
parents:
6518
diff
changeset
|
125 DEBEMAIL: evolve-testers@mercurial-scm.org |
89f78b4288e9
ci: set builder full name and email in environment variables
Anton Shestakov <av6@dwimlabs.net>
parents:
6518
diff
changeset
|
126 DEBFULLNAME: Evolve CI Package Builder |
6257
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
127 DEBIAN_FRONTEND: noninteractive |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
128 DEB_BUILD_OPTIONS: nocheck nodoc |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
129 artifacts: |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
130 paths: |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
131 - debs/*.build |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
132 - debs/*.buildinfo |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
133 - debs/*.changes |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
134 - debs/*.deb |
0d53a8d4170b
ci: add a manual job to build a .deb package
Anton Shestakov <av6@dwimlabs.net>
parents:
6256
diff
changeset
|
135 when: manual |