##// END OF EJS Templates
heptapod-ci: indicate which version of clang-format is used for the run...
marmoute -
r47133:a390c7fc default
parent child Browse files
Show More
@@ -1,109 +1,110 b''
1 stages:
1 stages:
2 - tests
2 - tests
3 - phabricator
3 - phabricator
4
4
5 image: registry.heptapod.net/mercurial/ci-images/mercurial-core:$HG_CI_IMAGE_TAG
5 image: registry.heptapod.net/mercurial/ci-images/mercurial-core:$HG_CI_IMAGE_TAG
6
6
7 variables:
7 variables:
8 PYTHON: python
8 PYTHON: python
9 TEST_HGMODULEPOLICY: "allow"
9 TEST_HGMODULEPOLICY: "allow"
10 HG_CI_IMAGE_TAG: "latest"
10 HG_CI_IMAGE_TAG: "latest"
11
11
12 .runtests_template: &runtests
12 .runtests_template: &runtests
13 stage: tests
13 stage: tests
14 # The runner made a clone as root.
14 # The runner made a clone as root.
15 # We make a new clone owned by user used to run the step.
15 # We make a new clone owned by user used to run the step.
16 before_script:
16 before_script:
17 - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no
17 - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no
18 - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
18 - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
19 - cd /tmp/mercurial-ci/rust/rhg
19 - cd /tmp/mercurial-ci/rust/rhg
20 - cargo build
20 - cargo build
21 - cd /tmp/mercurial-ci/
21 - cd /tmp/mercurial-ci/
22 - ls -1 tests/test-check-*.* > /tmp/check-tests.txt
22 - ls -1 tests/test-check-*.* > /tmp/check-tests.txt
23 - black --version
23 - black --version
24 - clang-format --version
24 script:
25 script:
25 - echo "python used, $PYTHON"
26 - echo "python used, $PYTHON"
26 - echo "$RUNTEST_ARGS"
27 - echo "$RUNTEST_ARGS"
27 - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS
28 - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS
28
29
29 checks-py2:
30 checks-py2:
30 <<: *runtests
31 <<: *runtests
31 variables:
32 variables:
32 RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt"
33 RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt"
33
34
34 checks-py3:
35 checks-py3:
35 <<: *runtests
36 <<: *runtests
36 variables:
37 variables:
37 RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt"
38 RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt"
38 PYTHON: python3
39 PYTHON: python3
39
40
40 rust-cargo-test-py2: &rust_cargo_test
41 rust-cargo-test-py2: &rust_cargo_test
41 stage: tests
42 stage: tests
42 script:
43 script:
43 - echo "python used, $PYTHON"
44 - echo "python used, $PYTHON"
44 - make rust-tests
45 - make rust-tests
45
46
46 rust-cargo-test-py3:
47 rust-cargo-test-py3:
47 stage: tests
48 stage: tests
48 <<: *rust_cargo_test
49 <<: *rust_cargo_test
49 variables:
50 variables:
50 PYTHON: python3
51 PYTHON: python3
51
52
52 phabricator-refresh:
53 phabricator-refresh:
53 stage: phabricator
54 stage: phabricator
54 script:
55 script:
55 - "./contrib/phab-refresh-stack.sh --comment \":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)\""
56 - "./contrib/phab-refresh-stack.sh --comment \":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)\""
56
57
57 test-py2:
58 test-py2:
58 <<: *runtests
59 <<: *runtests
59 variables:
60 variables:
60 RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
61 RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
61 TEST_HGMODULEPOLICY: "c"
62 TEST_HGMODULEPOLICY: "c"
62
63
63 test-py3:
64 test-py3:
64 <<: *runtests
65 <<: *runtests
65 variables:
66 variables:
66 RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
67 RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
67 PYTHON: python3
68 PYTHON: python3
68 TEST_HGMODULEPOLICY: "c"
69 TEST_HGMODULEPOLICY: "c"
69
70
70 test-py2-pure:
71 test-py2-pure:
71 <<: *runtests
72 <<: *runtests
72 variables:
73 variables:
73 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
74 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
74 TEST_HGMODULEPOLICY: "py"
75 TEST_HGMODULEPOLICY: "py"
75
76
76 test-py3-pure:
77 test-py3-pure:
77 <<: *runtests
78 <<: *runtests
78 variables:
79 variables:
79 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
80 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
80 PYTHON: python3
81 PYTHON: python3
81 TEST_HGMODULEPOLICY: "py"
82 TEST_HGMODULEPOLICY: "py"
82
83
83 test-py2-rust:
84 test-py2-rust:
84 <<: *runtests
85 <<: *runtests
85 variables:
86 variables:
86 HGWITHRUSTEXT: cpython
87 HGWITHRUSTEXT: cpython
87 RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt"
88 RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt"
88 TEST_HGMODULEPOLICY: "rust+c"
89 TEST_HGMODULEPOLICY: "rust+c"
89
90
90 test-py3-rust:
91 test-py3-rust:
91 <<: *runtests
92 <<: *runtests
92 variables:
93 variables:
93 HGWITHRUSTEXT: cpython
94 HGWITHRUSTEXT: cpython
94 RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt"
95 RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt"
95 PYTHON: python3
96 PYTHON: python3
96 TEST_HGMODULEPOLICY: "rust+c"
97 TEST_HGMODULEPOLICY: "rust+c"
97
98
98 test-py2-chg:
99 test-py2-chg:
99 <<: *runtests
100 <<: *runtests
100 variables:
101 variables:
101 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg"
102 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg"
102 TEST_HGMODULEPOLICY: "c"
103 TEST_HGMODULEPOLICY: "c"
103
104
104 test-py3-chg:
105 test-py3-chg:
105 <<: *runtests
106 <<: *runtests
106 variables:
107 variables:
107 PYTHON: python3
108 PYTHON: python3
108 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg"
109 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg"
109 TEST_HGMODULEPOLICY: "c"
110 TEST_HGMODULEPOLICY: "c"
General Comments 0
You need to be logged in to leave comments. Login now