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