Skip to content

Commit

Permalink
Add support for cargo-deny and check licenses while buildboting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltratt committed Feb 6, 2020
1 parent edeb6fa commit eb7bca6
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .buildbot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ rustup toolchain install stable
rustup default stable
cargo test
cargo test --release

which cargo-deny | cargo install cargo-deny
cargo-deny check license
7 changes: 7 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[licenses]
unlicensed = "deny"
confidence-threshold = 1.0
allow = [
"Apache-2.0",
"MIT",
]
1 change: 1 addition & 0 deletions lrlex/examples/calclex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "calclex"
version = "0.1.0"
authors = ["Laurence Tratt <http://tratt.net/laurie/>"]
edition = "2018"
license = "Apache-2.0/MIT"

[[bin]]
doc = false
Expand Down
1 change: 1 addition & 0 deletions lrpar/cttests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "lrpar-tests"
version = "0.1.0"
authors = ["test"]
edition = "2018"
license = "Apache-2.0/MIT"
build = "build.rs"

[build-dependencies]
Expand Down
1 change: 1 addition & 0 deletions lrpar/examples/calc_actions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "actions"
version = "0.1.0"
authors = ["Laurence Tratt <http://tratt.net/laurie/>"]
edition = "2018"
license = "Apache-2.0/MIT"

[[bin]]
doc = false
Expand Down
1 change: 1 addition & 0 deletions lrpar/examples/calc_ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "calc_ast"
version = "0.1.0"
authors = ["Laurence Tratt <http://tratt.net/laurie/>"]
edition = "2018"
license = "Apache-2.0/MIT"

[[bin]]
doc = false
Expand Down
1 change: 1 addition & 0 deletions lrpar/examples/calc_parsetree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "calcparse"
version = "0.1.0"
authors = ["Laurence Tratt <http://tratt.net/laurie/>"]
edition = "2018"
license = "Apache-2.0/MIT"

[[bin]]
doc = false
Expand Down

0 comments on commit eb7bca6

Please sign in to comment.