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