From cbbcf35b6978be78e95b1701e33f96e02bb300c1 Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Mon, 21 Sep 2020 10:06:59 +0200 Subject: ci: Extract codespell job. - Ingore all target dirs. - Adapt to new codespell dictionary: Add keyserver, keypair, dedup, fpr to ingore list. --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fbaff26b..5f608481 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,7 @@ +stages: + - pre-check + - build + before_script: - if [ -d $CARGO_TARGET_DIR ]; then find $CARGO_TARGET_DIR | wc --lines; du -sh $CARGO_TARGET_DIR; fi - if [ -d $CARGO_HOME ]; then find $CARGO_HOME | wc --lines; du -sh $CARGO_HOME; fi @@ -15,6 +19,8 @@ bullseye: - linux stage: build image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye:latest + dependencies: + - codespell script: - SEQUOIA_CTEST_VALGRIND=/usr/bin/valgrind cargo test -p sequoia-openpgp-ffi @@ -31,11 +37,24 @@ bullseye: CARGO_TARGET_DIR: $CI_PROJECT_DIR/../target.$CI_CONCURRENT_ID.bullseye RUSTFLAGS: -D warnings -A unused-parens +codespell: + tags: + - linux + stage: pre-check + image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye:latest + + before_script: + - codespell --version + script: + - make codespell CODESPELL_FLAGS=--summary + after_script: [] + rust-stable: tags: - linux stage: build image: rust:1-slim-buster + needs: [] before_script: - apt update -y -qq -- cgit v1.2.3