From 4269cbb9b6eee388075181baaa23a4194852aef4 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sat, 15 Jul 2017 19:08:50 -0400 Subject: [PATCH] Installing hugo as a global binary for reproducable windows builds. --- .travis.yml | 2 ++ gulpfile.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ab8fcae..fb19337 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,6 +32,8 @@ before_script: - sudo apt-get install graphicsmagick - convert -help - yarn global add @alrra/travis-scripts + - yarn global add hugo-bin + - hugo version - yarn global add gulp - echo '========== Configuring Github Pages ==========' diff --git a/gulpfile.js b/gulpfile.js index f0e3948..c5b0be6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -43,7 +43,7 @@ gulp.task('setup', function(cb) { // PHASE 2 - Building gulp.task('hugo', function (cb) { - exec('$(npm bin)/hugo -s ./site/ -d ../public/ -v', function (err, stdout, stderr) { + exec('hugo -s ./site/ -d ../public/ -v', function (err, stdout, stderr) { console.log(stdout); console.log(stderr); cb(err);