##// END OF EJS Templates
heptapod-ci: build rhg before tests run...
Antoine Cezar -
r45594:93e8e6e0 default
parent child Browse files
Show More
@@ -1,87 +1,89 b''
1 image: octobus/ci-mercurial-core
1 image: octobus/ci-mercurial-core
2
2
3 # The runner made a clone as root.
3 # The runner made a clone as root.
4 # We make a new clone owned by user used to run the step.
4 # We make a new clone owned by user used to run the step.
5 before_script:
5 before_script:
6 - hg clone . /tmp/mercurial-ci/ --noupdate
6 - hg clone . /tmp/mercurial-ci/ --noupdate
7 - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
7 - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
8 - cd /tmp/mercurial-ci/rust/rhg
9 - cargo build
8 - cd /tmp/mercurial-ci/
10 - cd /tmp/mercurial-ci/
9 - ls -1 tests/test-check-*.* > /tmp/check-tests.txt
11 - ls -1 tests/test-check-*.* > /tmp/check-tests.txt
10
12
11 variables:
13 variables:
12 PYTHON: python
14 PYTHON: python
13 TEST_HGMODULEPOLICY: "allow"
15 TEST_HGMODULEPOLICY: "allow"
14
16
15 .runtests_template: &runtests
17 .runtests_template: &runtests
16 script:
18 script:
17 - echo "python used, $PYTHON"
19 - echo "python used, $PYTHON"
18 - echo "$RUNTEST_ARGS"
20 - echo "$RUNTEST_ARGS"
19 - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS
21 - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS
20
22
21 checks-py2:
23 checks-py2:
22 <<: *runtests
24 <<: *runtests
23 variables:
25 variables:
24 RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt"
26 RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt"
25
27
26 checks-py3:
28 checks-py3:
27 <<: *runtests
29 <<: *runtests
28 variables:
30 variables:
29 RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt"
31 RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt"
30 PYTHON: python3
32 PYTHON: python3
31
33
32 rust-cargo-test-py2: &rust_cargo_test
34 rust-cargo-test-py2: &rust_cargo_test
33 script:
35 script:
34 - echo "python used, $PYTHON"
36 - echo "python used, $PYTHON"
35 - make rust-tests
37 - make rust-tests
36
38
37 rust-cargo-test-py3:
39 rust-cargo-test-py3:
38 <<: *rust_cargo_test
40 <<: *rust_cargo_test
39 variables:
41 variables:
40 PYTHON: python3
42 PYTHON: python3
41
43
42 test-py2:
44 test-py2:
43 <<: *runtests
45 <<: *runtests
44 variables:
46 variables:
45 RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
47 RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
46 TEST_HGMODULEPOLICY: "c"
48 TEST_HGMODULEPOLICY: "c"
47
49
48 test-py3:
50 test-py3:
49 <<: *runtests
51 <<: *runtests
50 variables:
52 variables:
51 RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
53 RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
52 PYTHON: python3
54 PYTHON: python3
53 TEST_HGMODULEPOLICY: "c"
55 TEST_HGMODULEPOLICY: "c"
54
56
55 test-py2-pure:
57 test-py2-pure:
56 <<: *runtests
58 <<: *runtests
57 variables:
59 variables:
58 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
60 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
59 TEST_HGMODULEPOLICY: "py"
61 TEST_HGMODULEPOLICY: "py"
60
62
61 test-py3-pure:
63 test-py3-pure:
62 <<: *runtests
64 <<: *runtests
63 variables:
65 variables:
64 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
66 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
65 PYTHON: python3
67 PYTHON: python3
66 TEST_HGMODULEPOLICY: "py"
68 TEST_HGMODULEPOLICY: "py"
67
69
68 test-py2-rust:
70 test-py2-rust:
69 <<: *runtests
71 <<: *runtests
70 variables:
72 variables:
71 HGWITHRUSTEXT: cpython
73 HGWITHRUSTEXT: cpython
72 RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt"
74 RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt"
73 TEST_HGMODULEPOLICY: "rust+c"
75 TEST_HGMODULEPOLICY: "rust+c"
74
76
75 test-py3-rust:
77 test-py3-rust:
76 <<: *runtests
78 <<: *runtests
77 variables:
79 variables:
78 HGWITHRUSTEXT: cpython
80 HGWITHRUSTEXT: cpython
79 RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt"
81 RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt"
80 PYTHON: python3
82 PYTHON: python3
81 TEST_HGMODULEPOLICY: "rust+c"
83 TEST_HGMODULEPOLICY: "rust+c"
82
84
83 test-py2-chg:
85 test-py2-chg:
84 <<: *runtests
86 <<: *runtests
85 variables:
87 variables:
86 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg"
88 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg"
87 TEST_HGMODULEPOLICY: "c"
89 TEST_HGMODULEPOLICY: "c"
General Comments 0
You need to be logged in to leave comments. Login now