Show More
@@ -1,121 +1,121 b'' | |||
|
1 | 1 | stages: |
|
2 | 2 | - tests |
|
3 | 3 | - phabricator |
|
4 | 4 | |
|
5 | 5 | image: registry.heptapod.net/mercurial/ci-images/mercurial-core:$HG_CI_IMAGE_TAG |
|
6 | 6 | |
|
7 | 7 | variables: |
|
8 | 8 | PYTHON: python |
|
9 | 9 | TEST_HGMODULEPOLICY: "allow" |
|
10 | 10 | HG_CI_IMAGE_TAG: "latest" |
|
11 | 11 | |
|
12 | 12 | .runtests_template: &runtests |
|
13 | 13 | stage: tests |
|
14 | 14 | # The runner made a clone as root. |
|
15 | 15 | # We make a new clone owned by user used to run the step. |
|
16 | 16 | before_script: |
|
17 | 17 | - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no |
|
18 | 18 | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
|
19 | 19 | - cd /tmp/mercurial-ci/ |
|
20 | 20 | - ls -1 tests/test-check-*.* > /tmp/check-tests.txt |
|
21 | 21 | - black --version |
|
22 | 22 | - clang-format --version |
|
23 | 23 | script: |
|
24 | 24 | - echo "python used, $PYTHON" |
|
25 | 25 | - echo "$RUNTEST_ARGS" |
|
26 | 26 | - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS |
|
27 | 27 | |
|
28 | 28 | |
|
29 | 29 | .rust_template: &rust |
|
30 | 30 | before_script: |
|
31 | 31 | - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no |
|
32 | 32 | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
|
33 | 33 | - ls -1 tests/test-check-*.* > /tmp/check-tests.txt |
|
34 | 34 | - cd /tmp/mercurial-ci/rust/rhg |
|
35 | - cargo build | |
|
35 | - cargo build --release | |
|
36 | 36 | - cd /tmp/mercurial-ci/ |
|
37 | 37 | |
|
38 | 38 | |
|
39 | 39 | checks-py2: |
|
40 | 40 | <<: *runtests |
|
41 | 41 | variables: |
|
42 | 42 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
|
43 | 43 | |
|
44 | 44 | checks-py3: |
|
45 | 45 | <<: *runtests |
|
46 | 46 | variables: |
|
47 | 47 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
|
48 | 48 | PYTHON: python3 |
|
49 | 49 | |
|
50 | 50 | rust-cargo-test-py2: &rust_cargo_test |
|
51 | 51 | stage: tests |
|
52 | 52 | script: |
|
53 | 53 | - echo "python used, $PYTHON" |
|
54 | 54 | - make rust-tests |
|
55 | 55 | |
|
56 | 56 | rust-cargo-test-py3: |
|
57 | 57 | stage: tests |
|
58 | 58 | <<: *rust_cargo_test |
|
59 | 59 | variables: |
|
60 | 60 | PYTHON: python3 |
|
61 | 61 | |
|
62 | 62 | phabricator-refresh: |
|
63 | 63 | stage: phabricator |
|
64 | 64 | script: |
|
65 | 65 | - "./contrib/phab-refresh-stack.sh --comment \":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)\"" |
|
66 | 66 | |
|
67 | 67 | test-py2: |
|
68 | 68 | <<: *runtests |
|
69 | 69 | variables: |
|
70 | 70 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" |
|
71 | 71 | TEST_HGMODULEPOLICY: "c" |
|
72 | 72 | |
|
73 | 73 | test-py3: |
|
74 | 74 | <<: *runtests |
|
75 | 75 | variables: |
|
76 | 76 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" |
|
77 | 77 | PYTHON: python3 |
|
78 | 78 | TEST_HGMODULEPOLICY: "c" |
|
79 | 79 | |
|
80 | 80 | test-py2-pure: |
|
81 | 81 | <<: *runtests |
|
82 | 82 | variables: |
|
83 | 83 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
|
84 | 84 | TEST_HGMODULEPOLICY: "py" |
|
85 | 85 | |
|
86 | 86 | test-py3-pure: |
|
87 | 87 | <<: *runtests |
|
88 | 88 | variables: |
|
89 | 89 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
|
90 | 90 | PYTHON: python3 |
|
91 | 91 | TEST_HGMODULEPOLICY: "py" |
|
92 | 92 | |
|
93 | 93 | test-py2-rust: |
|
94 | 94 | <<: *runtests |
|
95 | 95 | <<: *rust |
|
96 | 96 | variables: |
|
97 | 97 | HGWITHRUSTEXT: cpython |
|
98 | 98 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" |
|
99 | 99 | TEST_HGMODULEPOLICY: "rust+c" |
|
100 | 100 | |
|
101 | 101 | test-py3-rust: |
|
102 | 102 | <<: *runtests |
|
103 | 103 | <<: *rust |
|
104 | 104 | variables: |
|
105 | 105 | HGWITHRUSTEXT: cpython |
|
106 | 106 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" |
|
107 | 107 | PYTHON: python3 |
|
108 | 108 | TEST_HGMODULEPOLICY: "rust+c" |
|
109 | 109 | |
|
110 | 110 | test-py2-chg: |
|
111 | 111 | <<: *runtests |
|
112 | 112 | variables: |
|
113 | 113 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" |
|
114 | 114 | TEST_HGMODULEPOLICY: "c" |
|
115 | 115 | |
|
116 | 116 | test-py3-chg: |
|
117 | 117 | <<: *runtests |
|
118 | 118 | variables: |
|
119 | 119 | PYTHON: python3 |
|
120 | 120 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" |
|
121 | 121 | TEST_HGMODULEPOLICY: "c" |
General Comments 0
You need to be logged in to leave comments.
Login now