Skip to content

Commit b24e47e

Browse files
committed
Allow running tests on all channels
1 parent 401d776 commit b24e47e

File tree

7 files changed

+18
-4
lines changed

7 files changed

+18
-4
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ matrix:
1010
before_script:
1111
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
1212
script:
13-
- cargo build
1413
- cargo test
14+
- cargo test --manifest-path testcrate/Cargo.toml
15+
- cargo build --features unstable
1516
- cargo doc --no-deps
1617
after_success:
1718
- travis-cargo --only nightly doc-upload

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@ doctest = false
2020
[dependencies]
2121
unicode-xid = "0.1"
2222

23-
[dev-dependencies]
24-
compiletest_rs = "0.2"
25-
2623
[features]
2724
unstable = []

testcrate/Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[package]
2+
name = "testcrate"
3+
version = "0.1.0"
4+
authors = ["Alex Crichton <[email protected]>"]
5+
6+
[dependencies]
7+
proc-macro2 = { path = ".." }
8+
9+
[dev-dependencies]
10+
compiletest_rs = "0.2"

testcrate/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#[cfg(test)]
2+
mod tests {
3+
#[test]
4+
fn it_works() {
5+
}
6+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)