Show More
@@ -1,139 +1,139 b'' | |||
|
1 | 1 | stages: |
|
2 | 2 | - tests |
|
3 | 3 | |
|
4 | 4 | image: registry.heptapod.net/mercurial/ci-images/mercurial-core:$HG_CI_IMAGE_TAG |
|
5 | 5 | |
|
6 | 6 | variables: |
|
7 | 7 | PYTHON: python |
|
8 | 8 | TEST_HGMODULEPOLICY: "allow" |
|
9 | 9 | HG_CI_IMAGE_TAG: "v1.0" |
|
10 | 10 | TEST_HGTESTS_ALLOW_NETIO: "0" |
|
11 | 11 | |
|
12 | 12 | .all_template: &all |
|
13 | 13 | when: on_success |
|
14 | 14 | |
|
15 | 15 | .runtests_template: &runtests |
|
16 | 16 | <<: *all |
|
17 | 17 | stage: tests |
|
18 | 18 | # The runner made a clone as root. |
|
19 | 19 | # We make a new clone owned by user used to run the step. |
|
20 | 20 | before_script: |
|
21 | 21 | - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no |
|
22 | 22 | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
|
23 | 23 | - cd /tmp/mercurial-ci/ |
|
24 | 24 | - ls -1 tests/test-check-*.* > /tmp/check-tests.txt |
|
25 | 25 | - black --version |
|
26 | 26 | - clang-format --version |
|
27 | 27 | script: |
|
28 | 28 | - echo "python used, $PYTHON" |
|
29 | 29 | - echo "$RUNTEST_ARGS" |
|
30 | 30 | - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS |
|
31 | 31 | |
|
32 | 32 | checks: |
|
33 | 33 | <<: *runtests |
|
34 | 34 | variables: |
|
35 | 35 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
|
36 | 36 | PYTHON: python3 |
|
37 | 37 | |
|
38 | 38 | rust-cargo-test: |
|
39 | 39 | <<: *all |
|
40 | 40 | stage: tests |
|
41 | 41 | script: |
|
42 | 42 | - echo "python used, $PYTHON" |
|
43 | 43 | - make rust-tests |
|
44 | 44 | variables: |
|
45 | 45 | PYTHON: python3 |
|
46 | 46 | |
|
47 | 47 | test-c: |
|
48 | 48 | <<: *runtests |
|
49 | 49 | variables: |
|
50 | 50 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" |
|
51 | 51 | PYTHON: python3 |
|
52 | 52 | TEST_HGMODULEPOLICY: "c" |
|
53 | 53 | TEST_HGTESTS_ALLOW_NETIO: "1" |
|
54 | 54 | |
|
55 | 55 | test-pure: |
|
56 | 56 | <<: *runtests |
|
57 | 57 | variables: |
|
58 | 58 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
|
59 | 59 | PYTHON: python3 |
|
60 | 60 | TEST_HGMODULEPOLICY: "py" |
|
61 | 61 | |
|
62 | 62 | test-rust: |
|
63 | 63 | <<: *runtests |
|
64 | 64 | variables: |
|
65 | 65 | HGWITHRUSTEXT: cpython |
|
66 | 66 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" |
|
67 | 67 | PYTHON: python3 |
|
68 | 68 | TEST_HGMODULEPOLICY: "rust+c" |
|
69 | 69 | |
|
70 | 70 | test-rhg: |
|
71 | 71 | <<: *runtests |
|
72 | 72 | variables: |
|
73 | 73 | HGWITHRUSTEXT: cpython |
|
74 | 74 | RUNTEST_ARGS: "--rust --rhg --blacklist /tmp/check-tests.txt" |
|
75 | 75 | PYTHON: python3 |
|
76 | 76 | TEST_HGMODULEPOLICY: "rust+c" |
|
77 | 77 | |
|
78 | 78 | test-chg: |
|
79 | 79 | <<: *runtests |
|
80 | 80 | variables: |
|
81 | 81 | PYTHON: python3 |
|
82 | 82 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" |
|
83 | 83 | TEST_HGMODULEPOLICY: "c" |
|
84 | 84 | |
|
85 | 85 | check-pytype: |
|
86 | 86 | extends: .runtests_template |
|
87 | 87 | before_script: |
|
88 | 88 | - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no |
|
89 | 89 | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
|
90 | 90 | - cd /tmp/mercurial-ci/ |
|
91 | 91 | - make local PYTHON=$PYTHON |
|
92 | 92 | - $PYTHON -m pip install --user -U pytype==2021.04.15 |
|
93 | script: | |
|
94 | - echo "Entering script section" | |
|
95 | - sh contrib/check-pytype.sh | |
|
93 | 96 | variables: |
|
94 | RUNTEST_ARGS: " --allow-slow-tests tests/test-check-pytype.t" | |
|
95 | HGTEST_SLOWTIMEOUT: "3600" | |
|
96 | 97 | PYTHON: python3 |
|
97 | TEST_HGMODULEPOLICY: "c" | |
|
98 | 98 | |
|
99 | 99 | # `sh.exe --login` sets a couple of extra environment variables that are defined |
|
100 | 100 | # in the MinGW shell, but switches CWD to /home/$username. The previous value |
|
101 | 101 | # is stored in OLDPWD. Of the added variables, MSYSTEM is crucial to running |
|
102 | 102 | # run-tests.py- it is needed to make run-tests.py generate a `python3` script |
|
103 | 103 | # that satisfies the various shebang lines and delegates to `py -3`. |
|
104 | 104 | .window_runtests_template: &windows_runtests |
|
105 | 105 | <<: *all |
|
106 | 106 | when: manual # we don't have any Windows runners anymore at the moment |
|
107 | 107 | stage: tests |
|
108 | 108 | before_script: |
|
109 | 109 | - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.* > C:/Temp/check-tests.txt' |
|
110 | 110 | # TODO: find/install cvs, bzr, perforce, gpg, sqlite3 |
|
111 | 111 | |
|
112 | 112 | script: |
|
113 | 113 | - echo "Entering script section" |
|
114 | 114 | - echo "python used, $Env:PYTHON" |
|
115 | 115 | - Invoke-Expression "$Env:PYTHON -V" |
|
116 | 116 | - Invoke-Expression "$Env:PYTHON -m black --version" |
|
117 | 117 | - echo "$Env:RUNTEST_ARGS" |
|
118 | 118 | - echo "$Env:TMP" |
|
119 | 119 | - echo "$Env:TEMP" |
|
120 | 120 | |
|
121 | 121 | - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON tests/run-tests.py --color=always $RUNTEST_ARGS' |
|
122 | 122 | |
|
123 | 123 | windows: |
|
124 | 124 | <<: *windows_runtests |
|
125 | 125 | tags: |
|
126 | 126 | - windows |
|
127 | 127 | variables: |
|
128 | 128 | TEST_HGMODULEPOLICY: "c" |
|
129 | 129 | RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" |
|
130 | 130 | PYTHON: py -3 |
|
131 | 131 | |
|
132 | 132 | windows-pyox: |
|
133 | 133 | <<: *windows_runtests |
|
134 | 134 | tags: |
|
135 | 135 | - windows |
|
136 | 136 | variables: |
|
137 | 137 | TEST_HGMODULEPOLICY: "c" |
|
138 | 138 | RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt --pyoxidized" |
|
139 | 139 | PYTHON: py -3 |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now