diff options
-rw-r--r-- | .gitlab-ci.yml | 183 |
1 files changed, 0 insertions, 183 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 04c58935..1c8f6b48 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -123,35 +123,6 @@ trixie-crypto-botan: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo -trixie-crypto-fuzzing: - tags: - - linux - stage: build - interruptible: true - image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/trixie-prebuild:latest - script: - - cargo check --manifest-path openpgp/Cargo.toml --no-default-features --features crypto-fuzzing,compression,allow-experimental-crypto,allow-variable-time-crypto - rules: - - !reference [.default_rules, rules] - variables: - CARGO_TARGET_DIR: /target - CARGO_HOME: /cargo - -all_commits: - # Test each commit up to main, to facilitate bisecting. - stage: test - interruptible: true - image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/trixie-prebuild:latest - needs: ["rust-stable"] - script: - - .ci/all_commits.sh - rules: - - !reference [.default_rules, rules] - variables: - CARGO_TARGET_DIR: /target - CARGO_HOME: /cargo - GIT_STRATEGY: clone - codespell: tags: - linux @@ -168,160 +139,6 @@ codespell: rules: - !reference [.default_rules, rules] -doc: - tags: - - linux - stage: build - interruptible: true - image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/trixie-prebuild:latest - script: - - cargo doc --document-private-items --no-deps - rules: - - !reference [.default_rules, rules] - variables: - CARGO_TARGET_DIR: /target - CARGO_HOME: /cargo - -rust-stable: - tags: - - linux - stage: build - interruptible: true - image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/rust-stable-prebuild:latest - script: - - CARGO_PACKAGES="-p buffered-reader -p sequoia-openpgp" $MAKE_TOP test - rules: - - !reference [.default_rules, rules] - variables: - CARGO_TARGET_DIR: /target - CARGO_HOME: /cargo - -clippy: - tags: - - linux - stage: build - interruptible: true - image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/rust-stable-prebuild:latest - before_script: - - *before_script_start - - rustup default 1.67.0 # Pin clippy. - - rustup component add clippy - - cargo clippy --version - - *before_script_end - script: - - cargo clippy - rules: - - !reference [.default_rules, rules] - variables: - CARGO_TARGET_DIR: /target - CARGO_HOME: /cargo - -rust-stable-armv7: - tags: - - linux - stage: build - interruptible: true - image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/bullseye-cross-arm-prebuild:latest - before_script: - - *before_script_start - - cat .ci/snippet_for_cross_compilation_config.toml >> .cargo/config.toml - - *before_script_end - script: - - cargo test --tests --target=armv7-unknown-linux-gnueabihf -p buffered-reader -p sequoia-openpgp - rules: - - !reference [.default_rules, rules] - variables: - CARGO_TARGET_DIR: /target - CARGO_HOME: /cargo - PKG_CONFIG_PATH: /usr/lib/arm-linux-gnueabihf/pkgconfig - PKG_CONFIG_ALLOW_CROSS: 1 - -windows-msvc-cng: - tags: - - win - - win2019 - stage: build - interruptible: true - image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/windows-msvc - rules: - # Forks of this project most likely use gitlab's shared windows runners, which - # do not use the docker executor, so disable the windows jobs for forks. - - if: $CI_PROJECT_NAMESPACE != "sequoia-pgp" - when: never - - !reference [.default_rules, rules] - before_script: - # We don't call *before_script_start or *before_script_end as we - # don't have bash, clang, etc. - - rustc --version --verbose - - cargo --version - script: - # https://github.com/rust-lang/cargo/issues/5015 - - cargo run --manifest-path openpgp/Cargo.toml --no-default-features --features crypto-cng,compression --example supported-algorithms - - cargo test --tests --manifest-path openpgp/Cargo.toml --no-default-features --features crypto-cng,compression - after_script: [] # scriptlet doesn't work on Powershell - variables: - CFLAGS: "" # Silence some C warnings when compiling with MSVC - -windows-msvc32-cng: - tags: - - win - - win2019 - stage: build - interruptible: true - # Depend on the main configuration. As the jobs have common error - # conditions, if one fails it is often not worth trying the other. - # Therefore, we can short-circuit here. Also, this pipelines - # Windows jobs, allowing us to test the other toolchain as well. - needs: - - windows-msvc-cng - image: - name: 192.168.122.1:5000/sequoia-pgp/build-docker-image/windows-msvc - # Set up a cross compilation environment for building x86 binaries on amd64, line copied from Dockerfile.windows.msvc - # see https://renenyffenegger.ch/notes/Windows/dirs/Program-Files-x86/Microsoft-Visual-Studio/version/edition/Common7/Tools/VsDevCmd_bat - # - # Alternatively: ["C:\\BuildTools\\VC\\Auxiliary\\Build\\vcvarsamd64_x86.bat", "&&", "type", "README", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"] - # see https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160 - entrypoint: ["C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "-arch=x86", "-host_arch=amd64", "&&", "type", "README", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"] - rules: - # Forks of this project most likely use gitlab's shared windows runners, which - # do not use the docker executor, so disable the windows jobs for forks. - - if: $CI_PROJECT_NAMESPACE != "sequoia-pgp" - when: never - - !reference [.default_rules, rules] - before_script: - # We don't call *before_script_start or *before_script_end as we - # don't have bash, clang, etc. - - rustup target add i686-pc-windows-msvc - - rustup show - - rustc --version --verbose - - cargo --version - script: - # https://github.com/rust-lang/cargo/issues/5015 - - cargo test --tests --manifest-path openpgp/Cargo.toml --no-default-features --features crypto-cng,compression --target i686-pc-windows-msvc - after_script: [] # scriptlet doesn't work on Powershell - variables: - CFLAGS: "" # Silence some C warnings when compiling with MSVC - -authenticate-commits: - stage: test - interruptible: true - image: registry.gitlab.com/sequoia-pgp/sequoia-git:latest - before_script: [] - script: - - sq-git policy describe - - /usr/sbin/gitlab.sh # Script baked-in to image - after_script: [] - rules: - # Run whenever the non-default branch is updated. Note, we only - # run for "push" events otherwise the job would also be triggered - # for merge requests, which would result in the job running twice. - # - # TODO: We currently only authenticate the changes on non-merged - # branches where we use the default branch as the trust root. For - # the default branch, the project needs to set an explicit trust - # root. - - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH' - variables: DEBIAN_FRONTEND: noninteractive CARGO_HOME: $CI_PROJECT_DIR/../cargo |