Commit 7ecd7c40 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

feat: rust basics

parent 6960239c
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ variables:
  SCHEDULE_PIPELINE_CRON: 0 10 * * * # Every day at 10:00
  GITLAB_RECOMMENDED_AUTO_FIX: "true"
  RELEASE_CHANGELOG: "false"
  FF_SCRIPT_SECTIONS: "true"

include:
  - local: pipelines/project-automation.yml
@@ -191,3 +192,18 @@ pipelines:container:python:
  rules:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes: *python_changes

pipelines:rust:
  stage: test
  trigger:
    include:
      - local: tests/pipelines/rust.yml
    strategy: depend
  rules:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes: &rust_changes
        - rust/**/*
        - pipelines/rust.yml
        - pipelines/container/rust.yml
        - tests/pipelines/rust.yml
        - tests/mockup_projects/rust/**/*
+4 −0
Original line number Diff line number Diff line
---
include:
  - local: pipelines/rust.yml
  - local: pipelines/container.yml

pipelines/rust.yml

0 → 100644
+6 −0
Original line number Diff line number Diff line
---
include:
  - local: project-automation/workflow.yml
  - local: rust/clippy.yml
  - local: rust/test.yml
  - local: rust/release.yml

rust/clippy.yml

0 → 100644
+11 −0
Original line number Diff line number Diff line
---
include:
  - local: rust/generic.yml

rust:clippy:
  extends: .rust
  stage: test
  script:
    - rustup component add clippy
    - cargo update
    - cargo clippy

rust/generic.yml

0 → 100644
+15 −0
Original line number Diff line number Diff line
---
variables:
  CARGO_HOME: ${CI_PROJECT_DIR}/.cargo
  RUSTFLAGS: -Dwarnings

image:
  name: docker.io/rust:slim
  entrypoint: [""]

.rust:
  cache:
    paths:
      - .cargo
      - target
  needs: []
Loading