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