Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Update to syn, proc-macro2 and quote "1.0"; Version 1.0.0 #8

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
54 changes: 33 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,47 @@
version: 2

parameters:
toolchain:
description: >-
Rust toolchain to use. Overrides the default toolchain (stable) or any
toolchain specified in the project via `rust-toolchain`.
type: string
default: '1.47'

executor: default

jobs:
build:
branches:
ignore:
- gh-pages
docker:
- image: rust:1
# The compiletest-rs tests assume a specific Rust version's error outputs
- image: rust:1.47
steps:
- checkout
- run:
name: Switch to stable rust
command: rustup default stable

- run:
name: Install tooling
command: |
rustup component add clippy
- update_toolchain:
toolchain: <<parameters.toolchain>>

- run:
name: Version information
command: |
rustc --version
cargo --version
rustup --version
cargo clippy --version

- clippy

- run:
# We ship the Cargo.lock, to support Nix derivations
name: Calculate dependencies
command: cargo generate-lockfile
command: test -e Cargo.lock || cargo generate-lockfile

- restore_cache:
keys:
- v1-cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
- v1-bench-{{ .Branch }}-{{ .Revision }}
- v1-bench-{{ .Branch }}
- v1-bench-
# - restore_cache:
# keys:
# - v1-cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
# - v1-bench-{{ .Branch }}-{{ .Revision }}
# - v1-bench-{{ .Branch }}
# - v1-bench-

# DISABLED:
# running 11 tests
Expand Down Expand Up @@ -78,9 +85,14 @@ jobs:
# name: Measure code coverage
# command: cargo kcov

- run:
name: Run lints
command: cargo clippy
# - run:
# name: Run lints
# command: |
# if rustup component add clippy; then
# cargo clippy
# else
# echo Skipping clippy
# fi

- run:
name: Run unit tests
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
target/
**/*.rs.bk
Cargo.lock
Loading