We are about to add more stage
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
| No Linters Available |
| No Unit Test Coverage |
| Path | Packages | |||
|---|---|---|---|---|
| M | contrib/heptapod-ci.yml (6 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| 99f548dbab8c | 89a2afe31e82 | Pierre-Yves David | Nov 28 2020, 7:42 AM |
| stages: | |||||
| - tests | |||||
| image: registry.heptapod.net/mercurial/ci-images/mercurial-core | image: registry.heptapod.net/mercurial/ci-images/mercurial-core | ||||
| # The runner made a clone as root. | # The runner made a clone as root. | ||||
| # We make a new clone owned by user used to run the step. | # We make a new clone owned by user used to run the step. | ||||
| before_script: | before_script: | ||||
| - hg clone . /tmp/mercurial-ci/ --noupdate | - hg clone . /tmp/mercurial-ci/ --noupdate | ||||
| - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` | ||||
| - cd /tmp/mercurial-ci/rust/rhg | - cd /tmp/mercurial-ci/rust/rhg | ||||
| - cargo build | - cargo build | ||||
| - cd /tmp/mercurial-ci/ | - cd /tmp/mercurial-ci/ | ||||
| - ls -1 tests/test-check-*.* > /tmp/check-tests.txt | - ls -1 tests/test-check-*.* > /tmp/check-tests.txt | ||||
| variables: | variables: | ||||
| PYTHON: python | PYTHON: python | ||||
| TEST_HGMODULEPOLICY: "allow" | TEST_HGMODULEPOLICY: "allow" | ||||
| .runtests_template: &runtests | .runtests_template: &runtests | ||||
| stage: tests | |||||
| script: | script: | ||||
| - echo "python used, $PYTHON" | - echo "python used, $PYTHON" | ||||
| - echo "$RUNTEST_ARGS" | - echo "$RUNTEST_ARGS" | ||||
| - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS | - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS | ||||
| checks-py2: | checks-py2: | ||||
| <<: *runtests | <<: *runtests | ||||
| variables: | variables: | ||||
| RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | ||||
| checks-py3: | checks-py3: | ||||
| <<: *runtests | <<: *runtests | ||||
| variables: | variables: | ||||
| RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | ||||
| PYTHON: python3 | PYTHON: python3 | ||||
| rust-cargo-test-py2: &rust_cargo_test | rust-cargo-test-py2: &rust_cargo_test | ||||
| stage: tests | |||||
| script: | script: | ||||
| - echo "python used, $PYTHON" | - echo "python used, $PYTHON" | ||||
| - make rust-tests | - make rust-tests | ||||
| rust-cargo-test-py3: | rust-cargo-test-py3: | ||||
| stage: tests | |||||
| <<: *rust_cargo_test | <<: *rust_cargo_test | ||||
| variables: | variables: | ||||
| PYTHON: python3 | PYTHON: python3 | ||||
| rust-cargo-test-py3-dirstate-tree: | rust-cargo-test-py3-dirstate-tree: | ||||
| <<: *rust_cargo_test | <<: *rust_cargo_test | ||||
| variables: | variables: | ||||
| PYTHON: python3 | PYTHON: python3 | ||||