From 3a4994c159c205951f6f9b85448d3c08b7f19bb7 Mon Sep 17 00:00:00 2001
From: Adam Caprez <acaprez2@unl.edu>
Date: Mon, 29 Oct 2018 16:31:25 +0000
Subject: [PATCH] Update ci

---
 .gitlab-ci.yml | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f5121b18..e3038ad4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,10 +1,25 @@
 variables:
+  BASE_URL: "http://10.71.110.145/hcc-docs"
   DEPLOY_ROOT: "/var/www/html/hcc-docs"
+  HUGO_TARBALL:  "https://github.com/gohugoio/hugo/releases/download/v0.49.2/hugo_0.49.2_Linux-64bit.tar.gz"
   GIT_SUBMODULE_STRATEGY: recursive
 
 stages:
+  - test
   - deploy
 
+test:
+  stage: test
+  image: unlhcc/docker-glibc
+  except:
+    - master
+  tags:
+    - docker
+  before_script:
+    - curl -L -o - ${HUGO_TARBALL} | tar -zxv -C /usr/local/bin
+  script:
+    - hugo -v
+
 deploy:
   stage: deploy
   environment:
@@ -15,5 +30,5 @@ deploy:
   tags:
     - docs-test
   script:
-    - hugo -v
+    - hugo -b ${BASE_URL} -v
     - rsync -avz --delete public/ $DEPLOY_ROOT
-- 
GitLab