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