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