From 83ea495a2d4b76e8388ef1131386632554a6d3f1 Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Fri, 10 Jan 2020 00:20:05 -0600
Subject: [PATCH] Add test stage of ci

---
 .gitlab-ci.yml                       | 18 +++++++++++++-----
 layouts/custom/hu.donor.deep.html    |  6 +++---
 layouts/custom/hu.donor.shallow.html |  6 +++---
 3 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6048dd2..6f4c664 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,6 +7,7 @@ before_script:
 
 stages:
   - build_stage
+  - test_stage
   - deploy_stage
 
 build.dev:
@@ -20,8 +21,8 @@ build.dev:
   cache:
     paths:
     - public/
-  only:
-  - develop
+  except:
+    - tags
 
 build.live:
   stage: build_stage
@@ -35,7 +36,13 @@ build.live:
     paths:
     - public/
   only:
-  - master
+  - tags
+
+test:
+  stage: test_stage
+  script:
+    - singularity run 'docker://18fgsa/html-proofer:gitlab-ci' htmlproofer ./public --empty_alt_ignore
+  
 
 deploy.dev:
   stage: deploy_stage
@@ -43,8 +50,8 @@ deploy.dev:
   - singularity run 'docker://monachus/hugo' hugo deploy --target aws-dev --maxDeletes -1
   dependencies:
   - build.dev
-  only:
-  - develop
+  except:
+  - tags
 
 deploy.live:
   stage: deploy_stage
@@ -53,4 +60,5 @@ deploy.live:
   dependencies:
   - build.live
   only:
+  - tags
   - master
\ No newline at end of file
diff --git a/layouts/custom/hu.donor.deep.html b/layouts/custom/hu.donor.deep.html
index 614708e..11327e2 100644
--- a/layouts/custom/hu.donor.deep.html
+++ b/layouts/custom/hu.donor.deep.html
@@ -104,7 +104,7 @@
         <div class="columnF">
             <h4 id="label.ClusterVis">
                 </h3>
-                <div class="img">
+                <div data-proofer-ignore class="img">
                     <img id="img.ClusterVis" src="" />
                 </div>
                 <br>
@@ -112,7 +112,7 @@
         <div class="columnF">
             <h4 id="label.Feature">
                 </h3>
-                <div class="img">
+                <div data-proofer-ignore class="img">
                     <img id="img.Feature" src="" />
                 </div>
                 <br>
@@ -120,7 +120,7 @@
         <div class="columnF">
             <h4 id="label.ViolinBox">
                 </h3>
-                <div class="img">
+                <div data-proofer-ignore class="img">
                     <img id="img.ViolinBox" src="" />
                 </div>
                 <br>
diff --git a/layouts/custom/hu.donor.shallow.html b/layouts/custom/hu.donor.shallow.html
index 0d5407c..8f82783 100644
--- a/layouts/custom/hu.donor.shallow.html
+++ b/layouts/custom/hu.donor.shallow.html
@@ -101,7 +101,7 @@
         <div class="columnF">
             <h4 id="label.ClusterVis">
                 </h3>
-                <div class="img">
+                <div data-proofer-ignore class="img">
                     <img id="img.ClusterVis" src="" />
                 </div>
                 <br>
@@ -109,7 +109,7 @@
         <div class="columnF">
             <h4 id="label.Feature">
                 </h3>
-                <div class="img">
+                <div data-proofer-ignore class="img">
                     <img id="img.Feature" src="" />
                 </div>
                 <br>
@@ -117,7 +117,7 @@
         <div class="columnF">
             <h4 id="label.ViolinBox">
                 </h3>
-                <div class="img">
+                <div data-proofer-ignore class="img">
                     <img id="img.ViolinBox" src="" />
                 </div>
                 <br>
-- 
GitLab