summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 6284e87666ef9009c69d5577b26d642f33fdc8ea (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
stages:
  - pre-check
  - build
  - test


include:
  - component: "gitlab.com/sequoia-pgp/common-ci/sequoia-pipeline@main"
    inputs:
      extra_args: "-- --skip leak_tests"

fuzzing:
  image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/trixie-prebuild
  stage: pre-check
  before_script:
    - !reference [.before_script, start]
    - !reference [.before_script, end]
  script:
    - cargo check --manifest-path openpgp/Cargo.toml --no-default-features --features crypto-fuzzing,compression,allow-experimental-crypto,allow-variable-time-crypto
    - if ! git diff --quiet Cargo.lock ; then echo "Cargo.lock changed.  Please add the change to the corresponding commit." ; git diff ; false ; fi
    - if ! git diff --quiet ; then echo "The build changed the source.  Please investigate." ; git diff ; fi

  after_script:
    - !reference [.after_script, end]
  rules:
    - !reference [.default_rules, rules]