Run UI tests only on nightly.
This commit is contained in:
parent
66320b0bdb
commit
a0cfd393e7
|
@ -13,3 +13,4 @@ path = "main.rs"
|
||||||
compiletest_rs = { version = "0.3", features = ["stable"] }
|
compiletest_rs = { version = "0.3", features = ["stable"] }
|
||||||
typed-html = { path = "../typed-html" }
|
typed-html = { path = "../typed-html" }
|
||||||
typed-html-macros = { path = "../macros" }
|
typed-html-macros = { path = "../macros" }
|
||||||
|
version_check = "0.1.5"
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
#[test]
|
#[test]
|
||||||
fn ui() {
|
fn ui() {
|
||||||
|
extern crate version_check;
|
||||||
|
|
||||||
|
if !version_check::is_nightly().unwrap_or(false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
extern crate compiletest_rs as compiletest;
|
extern crate compiletest_rs as compiletest;
|
||||||
|
|
||||||
let mut config = compiletest::Config {
|
let mut config = compiletest::Config {
|
||||||
|
|
Loading…
Reference in New Issue