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