Skip to content

Commit

Permalink
Merge pull request #58 from epage/update
Browse files Browse the repository at this point in the history
chore: Pass along improvements
  • Loading branch information
epage committed Feb 2, 2021
2 parents 6e785de + 26e924a commit fb5b98b
Show file tree
Hide file tree
Showing 13 changed files with 230 additions and 151 deletions.
54 changes: 25 additions & 29 deletions CHANGELOG.md
@@ -1,10 +1,17 @@
<a name="0.13.1"></a>
## 1.0.0 (2020-03-26)
# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

<!-- next-header -->
## [Unreleased] - ReleaseDate

## 1.0.0 - 2020-03-26

Stable release!

<a name="0.13.1"></a>
## 0.13.1 (2019-12-01)
## 0.13.1 - 2019-12-01


#### Features
Expand All @@ -13,8 +20,7 @@ Stable release!



<a name="0.13.0"></a>
## 0.13.0 (2019-11-29)
## 0.13.0 - 2019-11-29


#### Breaking Changes
Expand All @@ -29,8 +35,7 @@ Stable release!



<a name="0.11.3"></a>
## 0.11.3 (2019-01-29)
## 0.11.3 - 2019-01-29


#### Features
Expand All @@ -39,8 +44,7 @@ Stable release!



<a name="0.11.2"></a>
## 0.11.2 (2019-01-29)
## 0.11.2 - 2019-01-29


#### Features
Expand All @@ -49,8 +53,7 @@ Stable release!



<a name="0.11.1"></a>
## 0.11.1 (2019-01-29)
## 0.11.1 - 2019-01-29


#### Features
Expand All @@ -59,8 +62,7 @@ Stable release!



<a name="0.11.0"></a>
## 0.11.0 (2019-01-29)
## 0.11.0 - 2019-01-29


#### Breaking Changes
Expand All @@ -80,8 +82,7 @@ Stable release!



<a name="0.10.1"></a>
## 0.10.1 (2019-01-07)
## 0.10.1 - 2019-01-07


#### Bug Fixes
Expand All @@ -90,8 +91,7 @@ Stable release!



<a name="0.10.0"></a>
## 0.10.0 (2018-10-26)
## 0.10.0 - 2018-10-26


#### Breaking Changes
Expand All @@ -109,8 +109,7 @@ Stable release!



<a name="0.9.0"></a>
## 0.9.0 (2018-08-02)
## 0.9.0 - 2018-08-02


#### Breaking Changes
Expand All @@ -137,8 +136,7 @@ Stable release!



<a name="0.3.0"></a>
## 0.3.0 (2018-06-27)
## 0.3.0 - 2018-06-27


#### Features
Expand All @@ -161,15 +159,13 @@ Stable release!



<a name="0.2.1"></a>
## 0.2.1 (2018-06-13)
## 0.2.1 - 2018-06-13


* Documentation updates


<a name="0.2.0"></a>
## 0.2.0 (2018-05-30)
## 0.2.0 - 2018-05-30

#### Bug Fixes

Expand All @@ -183,13 +179,13 @@ Stable release!

* Update version of `predicates-rs` to v0.5.0.

<a name="0.1.1"></a>
## 0.1.1 (2018-05-28)
## 0.1.1 - 2018-05-28


#### Features

* Add a prelude ([43539abf](https://github.com/assert-rs/assert_fs/commit/43539abff3e3ee879b763f5049817ca7d8609fed))



<!-- next-url -->
[Unreleased]: https://github.com/assert-rs/predicates-rs/compare/v1.0.0...HEAD
5 changes: 5 additions & 0 deletions Cargo.toml
Expand Up @@ -12,6 +12,11 @@ categories = ["development-tools::testing"]
keywords = ["filesystem", "test", "assert", "fixture"]
edition = "2018"

[badges]
azure-devops = { project = "assert-rs", pipeline = "assert_fs" }
codecov = { repository = "assert-rs/assert_fs" }
maintenance = { status = "passively-maintained" }

[dependencies]
tempfile = "3.0"
globwalk = "0.8"
Expand Down
9 changes: 0 additions & 9 deletions README.md
Expand Up @@ -11,15 +11,6 @@
- Setting up files for your tests to consume
- Asserting on files produced by your tests

## Install

Add to your `Cargo.toml`:

```toml
[dependencies]
assert_fs = "1.0.0"
```

## Example

Here is a trivial example:
Expand Down
189 changes: 168 additions & 21 deletions azure-pipelines.yml
@@ -1,31 +1,178 @@
trigger:
branches:
include: ['master']
tags:
include: ['v*']
pr:
branches:
include:
- master
paths:
exclude:
- "*.md"
- "docs/*"
- "LICENSE-*"
schedules:
- cron: "6 6 6 * *"
displayName: Monthly Build
branches:
include:
- master
variables:
minrust: 1.44.0
codecov_token: $(CODECOV_TOKEN_SECRET)
windows_vm: vs2017-win2016
mac_vm: macos-10.14
linux_vm: ubuntu-16.04

jobs:
- template: default.yml@templates
parameters:
minrust: 1.34.0
codecov_token: $(CODECOV_TOKEN_SECRET)
- job: "Committed"
displayName: Lint History
pool:
vmImage: 'ubuntu-16.04'
steps:
- checkout: self
- template: v1/azdo-step.yml@gh-install
parameters:
git: crate-ci/committed
target: 'x86_64-unknown-linux-gnu'
to: $(Build.StagingDirectory)/tools
- script: |
echo "This project uses Conventional style, see https://www.conventionalcommits.org"
$(Build.StagingDirectory)/tools/committed HEAD~..HEAD^2 --no-merge-commit -vv
displayName: Committed
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
stages:
- stage: check
displayName: Compilation Check
jobs:
- job: cargo_check
displayName: cargo check
pool:
vmImage: ${{ variables.linux_vm }}
steps:
- template: install-rust.yml@templates
parameters:
rust: stable
- script: cargo check --workspace --all-targets
displayName: Default features
- script: cargo check --workspace --all-targets --no-default-features
displayName: No-default features
- script: cargo check --workspace --all-targets --all-features
displayName: All features
- stage: test
displayName: Test
jobs:
- job: test
displayName: Test
strategy:
matrix:
windows:
imageName: ${{ variables.windows_vm }}
target: 'x86_64-pc-windows-msvc'
channel: stable
mac:
imageName: ${{ variables.mac_vm }}
target: 'x86_64-apple-darwin'
channel: stable
linux:
imageName: ${{ variables.linux_vm }}
target: 'x86_64-unknown-linux-gnu'
channel: stable
# Check for upcoming platform-specific compiler breakages
windows_beta:
imageName: ${{ variables.windows_vm }}
target: 'x86_64-pc-windows-msvc'
channel: beta
mac_beta:
imageName: ${{ variables.mac_vm }}
target: 'x86_64-apple-darwin'
channel: beta
linux_beta:
imageName: ${{ variables.linux_vm }}
target: 'x86_64-unknown-linux-gnu'
channel: beta
# Check for compiler breakages
linux_nightly:
imageName: ${{ variables.linux_vm }}
target: 'x86_64-unknown-linux-gnu'
channel: nightly
continueOnError: $[ne(variables.rust, 'stable')]
pool:
vmImage: $(imageName)
steps:
- template: install-rust.yml@templates
parameters:
rust: $(channel)
targets: ["$(TARGET)"]
- script: cargo test --target $(TARGET) --workspace
displayName: cargo test
- script: cargo doc --target $(TARGET) --workspace --no-deps
displayName: cargo doc
- job: msrv
displayName: "${{ format('Minimum supported Rust version: {0}', variables.minrust) }}"
dependsOn: []
pool:
vmImage: ${{ variables.linux_vm }}
steps:
- template: install-rust.yml@templates
parameters:
rust: ${{ variables.minrust }}
- script: cargo check --all --bins --examples --tests
displayName: cargo check
- stage: style
displayName: Style checks
dependsOn: []
jobs:
- job: "Committed"
displayName: Linting commit history
pool:
vmImage: ${{ variables.linux_vm }}
steps:
- checkout: self
- template: v1/azdo-step.yml@gh-install
parameters:
git: crate-ci/committed
target: 'x86_64-unknown-linux-gnu'
to: $(Build.StagingDirectory)/tools
- script: |
echo "Linting commits:"
git log --graph --oneline HEAD~..HEAD^2
echo "Against 'committed.toml':"
$(Build.StagingDirectory)/tools/committed --dump-config -
echo ""
echo "If this fails, don't sweat it. We're trying to encourage clear communication and not hinder contributions."
echo "If it is a reasonable issue and you lack time or feel uncomfortable fixing it yourself,"
echo "let us know and we can mentor or fix it."
$(Build.StagingDirectory)/tools/committed HEAD~..HEAD^2 --no-merge-commit -vv
displayName: Lint commit history
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
- job: style
displayName: Style checking
pool:
vmImage: ${{ variables.linux_vm }}
steps:
- template: install-rust.yml@templates
parameters:
rust: stable
components:
- rustfmt
- script: cargo fmt --all -- --check
displayName: rustfmt
- job: lint
displayName: Linting
strategy:
matrix:
current:
channel: ${{ variables.minrust }}
next:
channel: stable
continueOnError: $[eq(variables.channel, 'stable')]
pool:
vmImage: ${{ variables.linux_vm }}
steps:
- template: install-rust.yml@templates
parameters:
rust: $(channel)
components:
- clippy
- script: cargo check --workspace --all-targets --all-features
displayName: Warnings
env:
RUSTFLAGS: "-D warnings"
- script: cargo clippy --workspace --all-features --all-targets -- -D warnings
displayName: clippy
- ${{ if ne('', variables.codecov_token) }}:
- stage: coverage
displayName: Code coverage
dependsOn: test
jobs:
- template: coverage.yml@templates
parameters:
token: ${{ variables.codecov_token }}

resources:
repositories:
Expand Down
4 changes: 3 additions & 1 deletion committed.toml
@@ -1 +1,3 @@
style="Conventional"
style="conventional"
ignore_author_re="dependabot"
merge_commit = false
7 changes: 5 additions & 2 deletions release.toml
Expand Up @@ -3,6 +3,9 @@ no-dev-version = true
tag-message = "{{tag_name}}"
tag-name = "{{prefix}}v{{version}}"
pre-release-replacements = [
{file="README.md", search="assert_fs = .*", replace="assert_fs = \"{{version}}\""},
{file="src/lib.rs", search="assert_fs = .*", replace="assert_fs = \"{{version}}\""},
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/assert-rs/predicates-rs/compare/{{tag_name}}...HEAD", exactly=1},
]

0 comments on commit fb5b98b

Please sign in to comment.