Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Upgrade to latest nightly. (#9)" #13

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 26 additions & 41 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ version: 2
jobs:
build:
machine:
image: circleci/classic:latest
image: circleci/classic:201710-01
steps:
- restore_cache:
keys:
- source-v5-{{ .Branch }}-{{ .Revision }}
- source-v5-{{ .Branch }}-
- source-v5-
# - restore_cache:
# keys:
# - source-v5-{{ .Branch }}-{{ .Revision }}
# - source-v5-{{ .Branch }}-
# - source-v5-
- checkout
- save_cache:
key: source-v5-{{ .Branch }}-{{ .Revision }}
paths:
- ".git"
- restore_cache:
keys:
- spdk-v5-{{ checksum ".circleci/scripts/build_spdk.sh" }}
- spdk-v5-
# - save_cache:
# key: source-v5-{{ .Branch }}-{{ .Revision }}
# paths:
# - ".git"
# - restore_cache:
# keys:
# - spdk-v5-{{ checksum ".circleci/scripts/build_spdk.sh" }}
# - spdk-v5-
- run:
name: Build spdk
command: sh .circleci/scripts/build_spdk.sh
Expand All @@ -36,33 +36,18 @@ jobs:
name: Install rustup
command: |
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
- restore_cache:
keys:
- deps-v1-{{ .Branch }}-{{ .Revision }}
- deps-v1-{{ .Branch }}-
- deps-v1-
- run:
name: Cache dependencies
command: |
source $HOME/.cargo/env
cargo install cargo-build-deps
cargo build-deps
- save_cache:
key: deps-v5-{{ .Branch }}-{{ .Revision }}
paths:
- "target"
- run:
name: Run 'cargo fmt'
command: |
source $HOME/.cargo/env
rustup component add rustfmt-preview
cargo fmt --all -- --check
- run:
name: Run 'cargo clippy'
command: |
source $HOME/.cargo/env
rustup component add clippy-preview
cargo clippy --all --all-targets --all-features -- -D warnings
# - run:
# name: Run 'cargo fmt'
# command: |
# source $HOME/.cargo/env
# rustup component add rustfmt-preview
# cargo fmt --all -- --check
# - run:
# name: Run 'cargo clippy'
# command: |
# source $HOME/.cargo/env
# rustup component add clippy-preview
# cargo clippy --all --all-targets --all-features -- -D warnings
- run:
name: Run tests
command: |
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
# Cargo.lock
Cargo.lock
#/.cargo/

# IDE directories
/.idea/
/.vscode/
/*.code-workspace
/.vscode/
Loading