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