Run UI tests only on nightly.

This commit is contained in:
Bodil Stokke 2019-04-08 17:20:56 +01:00
parent 66320b0bdb
commit a0cfd393e7
2 changed files with 7 additions and 0 deletions

View File

@ -13,3 +13,4 @@ path = "main.rs"
compiletest_rs = { version = "0.3", features = ["stable"] }
typed-html = { path = "../typed-html" }
typed-html-macros = { path = "../macros" }
version_check = "0.1.5"

View File

@ -1,5 +1,11 @@
#[test]
fn ui() {
extern crate version_check;
if !version_check::is_nightly().unwrap_or(false) {
return;
}
extern crate compiletest_rs as compiletest;
let mut config = compiletest::Config {