From be9a524eeb7103e2aedb774abf3364ca6345ebe6 Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Tue, 16 Jan 2018 07:26:01 +0800 Subject: [PATCH 1/2] Made sure the CmdRenderer always creates the destination dir --- src/renderer/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index e094b5cddf..e2d6c268f2 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -15,6 +15,7 @@ pub use self::html_handlebars::HtmlHandlebars; mod html_handlebars; +use std::fs; use std::io::Read; use std::path::PathBuf; use std::process::{Command, Stdio}; @@ -152,6 +153,8 @@ impl Renderer for CmdRenderer { fn render(&self, ctx: &RenderContext) -> Result<()> { info!("Invoking the \"{}\" renderer", self.cmd); + let _ = fs::create_dir_all(&ctx.destination); + let mut child = self.compose_command()? .stdin(Stdio::piped()) .stdout(Stdio::inherit()) From 8ecfc6fdbb0f3795565d437e58a3737a75510ebe Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Tue, 16 Jan 2018 21:37:05 +0800 Subject: [PATCH 2/2] Commented out osx jobs temporarily --- .travis.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1a919db98a..3abf206ba1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,10 +28,10 @@ matrix: - env: TARGET=x86_64-unknown-linux-musl # Mac - - env: TARGET=i686-apple-darwin - os: osx - - env: TARGET=x86_64-apple-darwin - os: osx + # - env: TARGET=i686-apple-darwin + # os: osx + # - env: TARGET=x86_64-apple-darwin + # os: osx # BSD - env: TARGET=i686-unknown-freebsd DISABLE_TESTS=1 @@ -41,14 +41,14 @@ matrix: # Other channels - env: TARGET=x86_64-unknown-linux-gnu rust: beta - - env: TARGET=x86_64-apple-darwin - os: osx - rust: beta + # - env: TARGET=x86_64-apple-darwin + # os: osx + # rust: beta - env: TARGET=x86_64-unknown-linux-gnu rust: nightly - - env: TARGET=x86_64-apple-darwin - os: osx - rust: nightly + # - env: TARGET=x86_64-apple-darwin + # os: osx + # rust: nightly before_install: - set -e