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