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