From 01763d6e7e390aa3f4e927e02694c091177e0802 Mon Sep 17 00:00:00 2001 From: Bryan Davis Date: Fri, 19 Jul 2024 15:40:11 -0600 Subject: [PATCH] ci: Port pipelinelib to gitlab-ci Bug: T344744 --- .gitlab-ci.yml | 19 +++++++++++++++++++ .pipeline/blubber.yaml | 27 --------------------------- .pipeline/config.yaml | 7 ------- 3 files changed, 19 insertions(+), 34 deletions(-) create mode 100644 .gitlab-ci.yml delete mode 100644 .pipeline/blubber.yaml delete mode 100644 .pipeline/config.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..83bed20 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +stages: + - test + +variables: + CARGO_BUILD_JOBS: "1" + IRCSERVSERV_REPO: "https://gerrit.wikimedia.org/r/wikimedia/irc/ircservserv" + IRCSERVSERV_REV: "f5f4d95" + +test-validate: + stage: test + tags: + - wmcs + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + image: rust:latest + script: + - cargo install --locked --git $IRCSERVSERV_REPO --rev $IRCSERVSERV_REV + - /usr/local/cargo/bin/validate-config channels diff --git a/.pipeline/blubber.yaml b/.pipeline/blubber.yaml deleted file mode 100644 index c4fc0f7..0000000 --- a/.pipeline/blubber.yaml +++ /dev/null @@ -1,27 +0,0 @@ -version: v4 -base: docker-registry.wikimedia.org/wikimedia-buster:latest -variants: - build: - base: docker-registry.wikimedia.org/releng/rust:1.56.1-1 - prep: - includes: [build] - builder: - command: - - cargo - - install - - "--locked" - - "--git" - - "https://gerrit.wikimedia.org/r/wikimedia/irc/ircservserv" - - "--rev" - - f5f4d95 - validate: - copies: - - from: prep - source: /usr/local/cargo/bin/validate-config - destination: /usr/local/bin/validate-config - - from: local - source: . - destination: . - entrypoint: - - "/usr/local/bin/validate-config" - - "channels" diff --git a/.pipeline/config.yaml b/.pipeline/config.yaml deleted file mode 100644 index 8ec7d5d..0000000 --- a/.pipeline/config.yaml +++ /dev/null @@ -1,7 +0,0 @@ -pipelines: - test: - blubberfile: blubber.yaml - stages: - - name: validate - build: validate - run: true