Show More
@@ -1,82 +1,82 | |||||
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/ |
|
17 | - cd tests/ | |
18 | - echo "python used, $PYTHON" |
|
18 | - echo "python used, $PYTHON" | |
19 | - echo "$RUNTEST_ARGS" |
|
19 | - echo "$RUNTEST_ARGS" | |
20 | - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" run-tests.py --color=always $RUNTEST_ARGS |
|
20 | - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" run-tests.py --color=always $RUNTEST_ARGS | |
21 |
|
21 | |||
22 | checks-py2: |
|
22 | checks-py2: | |
23 | <<: *runtests |
|
23 | <<: *runtests | |
24 | variables: |
|
24 | variables: | |
25 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
|
25 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | |
26 |
|
26 | |||
27 | checks-py3: |
|
27 | checks-py3: | |
28 | <<: *runtests |
|
28 | <<: *runtests | |
29 | variables: |
|
29 | variables: | |
30 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
|
30 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | |
31 | PYTHON: python3 |
|
31 | PYTHON: python3 | |
32 |
|
32 | |||
33 | rust-cargo-test-py2: &rust_cargo_test |
|
33 | rust-cargo-test-py2: &rust_cargo_test | |
34 | script: |
|
34 | script: | |
35 | - echo "python used, $PYTHON" |
|
35 | - echo "python used, $PYTHON" | |
36 | - make rust-tests |
|
36 | - make rust-tests | |
37 |
|
37 | |||
38 | rust-cargo-test-py3: |
|
38 | rust-cargo-test-py3: | |
39 | <<: *rust_cargo_test |
|
39 | <<: *rust_cargo_test | |
40 | variables: |
|
40 | variables: | |
41 | PYTHON: python3 |
|
41 | PYTHON: python3 | |
42 |
|
42 | |||
43 | test-py2: |
|
43 | test-py2: | |
44 | <<: *runtests |
|
44 | <<: *runtests | |
45 | variables: |
|
45 | variables: | |
46 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" |
|
46 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" | |
47 | TEST_HGMODULEPOLICY: "c" |
|
47 | TEST_HGMODULEPOLICY: "c" | |
48 |
|
48 | |||
49 | test-py3: |
|
49 | test-py3: | |
50 | <<: *runtests |
|
50 | <<: *runtests | |
51 | variables: |
|
51 | variables: | |
52 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" |
|
52 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" | |
53 | PYTHON: python3 |
|
53 | PYTHON: python3 | |
54 | TEST_HGMODULEPOLICY: "c" |
|
54 | TEST_HGMODULEPOLICY: "c" | |
55 |
|
55 | |||
56 | test-py2-pure: |
|
56 | test-py2-pure: | |
57 | <<: *runtests |
|
57 | <<: *runtests | |
58 | variables: |
|
58 | variables: | |
59 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
|
59 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | |
60 | TEST_HGMODULEPOLICY: "py" |
|
60 | TEST_HGMODULEPOLICY: "py" | |
61 |
|
61 | |||
62 | test-py3-pure: |
|
62 | test-py3-pure: | |
63 | <<: *runtests |
|
63 | <<: *runtests | |
64 | variables: |
|
64 | variables: | |
65 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
|
65 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | |
66 | PYTHON: python3 |
|
66 | PYTHON: python3 | |
67 | TEST_HGMODULEPOLICY: "py" |
|
67 | TEST_HGMODULEPOLICY: "py" | |
68 |
|
68 | |||
69 | test-py2-rust: |
|
69 | test-py2-rust: | |
70 | <<: *runtests |
|
70 | <<: *runtests | |
71 | variables: |
|
71 | variables: | |
72 | HGWITHRUSTEXT: cpython |
|
72 | HGWITHRUSTEXT: cpython | |
73 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" |
|
73 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" | |
74 | TEST_HGMODULEPOLICY: "rust+c" |
|
74 | TEST_HGMODULEPOLICY: "rust+c" | |
75 |
|
75 | |||
76 | test-py3-rust: |
|
76 | test-py3-rust: | |
77 | <<: *runtests |
|
77 | <<: *runtests | |
78 | variables: |
|
78 | variables: | |
79 | HGWITHRUSTEXT: cpython |
|
79 | HGWITHRUSTEXT: cpython | |
80 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" |
|
80 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" | |
81 | PYTHON: python3 |
|
81 | PYTHON: python3 | |
82 | TEST_HGMODULEPOLICY: "rust+c" |
|
82 | TEST_HGMODULEPOLICY: "rust+c" |
General Comments 0
You need to be logged in to leave comments.
Login now