summaryrefslogtreecommitdiff
path: root/maint/rust-maint-common/.gitlab-ci.yml
blob: f906bb1a577110afb2975080c4d781250aea388a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
stages:
  - check
  - test

image: "rust:1.79.0-bookworm"

checks:
  stage: check
  script:
    - maint/forbid-script-extensions
    - maint/forbid-absolute-shebangs
    - maint/forbid-script-underscores
    - maint/update-shell-includes --all --check

shellcheck:
  stage: check
  image: koalaman/shellcheck-alpine
  script:
    - apk add git bash
    - ./maint/shellcheck-all

for-every-commit:
  stage: test
  script:
    - maint/apt-install libtoml-perl
    - cd test-project && maint/for-every-commit git --no-pager log -n1

via-cargo-install-in-ci:
  stage: test
  script:
    # tiny-timer is an almost-arbitrarily-chosen small binary crate
    maint/via-cargo-install-in-ci tiny-timer --version=0.1.1
  cache:
    paths:
      - cache