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