Show More
@@ -1,82 +1,81 b'' | |||
|
1 | 1 | image: octobus/ci-mercurial-core |
|
2 | 2 | |
|
3 | 3 | # The runner made a clone as root. |
|
4 | 4 | # We make a new clone owned by user used to run the step. |
|
5 | 5 | before_script: |
|
6 | 6 | - hg clone . /tmp/mercurial-ci/ --noupdate |
|
7 | 7 | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
|
8 | 8 | - cd /tmp/mercurial-ci/ |
|
9 | 9 | - (cd tests; ls -1 test-check-*.*) > /tmp/check-tests.txt |
|
10 | 10 | |
|
11 | 11 | variables: |
|
12 | 12 | PYTHON: python |
|
13 | 13 | TEST_HGMODULEPOLICY: "allow" |
|
14 | 14 | |
|
15 | 15 | .runtests_template: &runtests |
|
16 | 16 | script: |
|
17 | - cd tests/ | |
|
18 | 17 | - echo "python used, $PYTHON" |
|
19 | 18 | - echo "$RUNTEST_ARGS" |
|
20 | - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" run-tests.py --color=always $RUNTEST_ARGS | |
|
19 | - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS | |
|
21 | 20 | |
|
22 | 21 | checks-py2: |
|
23 | 22 | <<: *runtests |
|
24 | 23 | variables: |
|
25 | 24 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
|
26 | 25 | |
|
27 | 26 | checks-py3: |
|
28 | 27 | <<: *runtests |
|
29 | 28 | variables: |
|
30 | 29 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
|
31 | 30 | PYTHON: python3 |
|
32 | 31 | |
|
33 | 32 | rust-cargo-test-py2: &rust_cargo_test |
|
34 | 33 | script: |
|
35 | 34 | - echo "python used, $PYTHON" |
|
36 | 35 | - make rust-tests |
|
37 | 36 | |
|
38 | 37 | rust-cargo-test-py3: |
|
39 | 38 | <<: *rust_cargo_test |
|
40 | 39 | variables: |
|
41 | 40 | PYTHON: python3 |
|
42 | 41 | |
|
43 | 42 | test-py2: |
|
44 | 43 | <<: *runtests |
|
45 | 44 | variables: |
|
46 | 45 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" |
|
47 | 46 | TEST_HGMODULEPOLICY: "c" |
|
48 | 47 | |
|
49 | 48 | test-py3: |
|
50 | 49 | <<: *runtests |
|
51 | 50 | variables: |
|
52 | 51 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" |
|
53 | 52 | PYTHON: python3 |
|
54 | 53 | TEST_HGMODULEPOLICY: "c" |
|
55 | 54 | |
|
56 | 55 | test-py2-pure: |
|
57 | 56 | <<: *runtests |
|
58 | 57 | variables: |
|
59 | 58 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
|
60 | 59 | TEST_HGMODULEPOLICY: "py" |
|
61 | 60 | |
|
62 | 61 | test-py3-pure: |
|
63 | 62 | <<: *runtests |
|
64 | 63 | variables: |
|
65 | 64 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
|
66 | 65 | PYTHON: python3 |
|
67 | 66 | TEST_HGMODULEPOLICY: "py" |
|
68 | 67 | |
|
69 | 68 | test-py2-rust: |
|
70 | 69 | <<: *runtests |
|
71 | 70 | variables: |
|
72 | 71 | HGWITHRUSTEXT: cpython |
|
73 | 72 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" |
|
74 | 73 | TEST_HGMODULEPOLICY: "rust+c" |
|
75 | 74 | |
|
76 | 75 | test-py3-rust: |
|
77 | 76 | <<: *runtests |
|
78 | 77 | variables: |
|
79 | 78 | HGWITHRUSTEXT: cpython |
|
80 | 79 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" |
|
81 | 80 | PYTHON: python3 |
|
82 | 81 | TEST_HGMODULEPOLICY: "rust+c" |
General Comments 0
You need to be logged in to leave comments.
Login now