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