Skip to content

Commit

Permalink
No one likes a strict lint anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Dec 5, 2021
1 parent e30ba91 commit fdf3dd6
Showing 1 changed file with 65 additions and 65 deletions.
130 changes: 65 additions & 65 deletions .circleci/config.yml
Expand Up @@ -58,73 +58,73 @@ workflows:
- build-and-test

jobs:
lint-test-build:
description: |
Check the rust sub section
executor:
name: default
tag: << parameters.version >>
parameters:
cache_version:
default: v1
description: Cache version to use - increment this to build a fresh cache.
type: string
clippy_arguments:
default: ""
description: Arguments to pass to cargo run clippy.
type: string
release:
default: false
description: Whether to build the binary for release or debug.
type: boolean
version:
default: 1.57.0
description: Version of Rust executor to utilize.
type: string
with_cache:
default: true
description: Whether to restore and save the cache or not - set to no if running multiple commands in one job.
type: boolean
working_directory:
default: ~/robyn
description: Path to the directory containing your Cargo.lock file. Not needed if Cargo.lock lives in the root.
type: string
steps:
- checkout:
path: /home/circleci/robyn
- run:
name: Update clippy
command: |
rustup update
rustup component add clippy-preview
# lint-test-build:
# description: |
# Check the rust sub section
# executor:
# name: default
# tag: << parameters.version >>
# parameters:
# cache_version:
# default: v1
# description: Cache version to use - increment this to build a fresh cache.
# type: string
# clippy_arguments:
# default: ""
# description: Arguments to pass to cargo run clippy.
# type: string
# release:
# default: false
# description: Whether to build the binary for release or debug.
# type: boolean
# version:
# default: 1.57.0
# description: Version of Rust executor to utilize.
# type: string
# with_cache:
# default: true
# description: Whether to restore and save the cache or not - set to no if running multiple commands in one job.
# type: boolean
# working_directory:
# default: ~/robyn
# description: Path to the directory containing your Cargo.lock file. Not needed if Cargo.lock lives in the root.
# type: string
# steps:
# - checkout:
# path: /home/circleci/robyn
# - run:
# name: Update clippy
# command: |
# rustup update
# rustup component add clippy-preview

- when:
condition: <<parameters.with_cache>>
steps:
- restore_cache:
keys:
- cargo-<<parameters.cache_version>>-{{ checksum "Cargo.lock" }}
# - when:
# condition: <<parameters.with_cache>>
# steps:
# - restore_cache:
# keys:
# - cargo-<<parameters.cache_version>>-{{ checksum "Cargo.lock" }}

- clippy:
flags: <<parameters.clippy_arguments>>
with_cache: false
working_directory: <<parameters.working_directory>>
- test:
with_cache: false
working_directory: <<parameters.working_directory>>
# command: cargo test
# - build:
# release: <<parameters.release>>
# with_cache: false
# working_directory: <<parameters.working_directory>>
- when:
condition: <<parameters.with_cache>>
steps:
- save_cache:
key: cargo-<<parameters.cache_version>>-{{ checksum "Cargo.lock" }}
paths:
- ~/.cargo
working_directory: <<parameters.working_directory>>
# - clippy:
# flags: <<parameters.clippy_arguments>>
# with_cache: false
# working_directory: <<parameters.working_directory>>
# - test:
# with_cache: false
# working_directory: <<parameters.working_directory>>
# # command: cargo test
# # - build:
# # release: <<parameters.release>>
# # with_cache: false
# # working_directory: <<parameters.working_directory>>
# - when:
# condition: <<parameters.with_cache>>
# steps:
# - save_cache:
# key: cargo-<<parameters.cache_version>>-{{ checksum "Cargo.lock" }}
# paths:
# - ~/.cargo
# working_directory: <<parameters.working_directory>>

build-and-test: # This is the name of the job, feel free to change it to better match what you're trying to do!
# These next lines defines a Docker executors: https://circleci.com/docs/2.0/executor-types/
Expand Down

0 comments on commit fdf3dd6

Please sign in to comment.