From 41e37ec30a04bf957ededf56a86e4829eaac4055 Mon Sep 17 00:00:00 2001
From: "Kurt A. O'Hearn" <ohearnk@msu.edu>
Date: Thu, 7 Feb 2019 14:43:47 -0500
Subject: [PATCH] Add CI script.

---
 .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..3ef67781
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,32 @@
+variables:
+  OMP_NUM_THREADS: 1
+  GIT_STRATEGY: clone
+  APPLICATION: PuReMD
+
+before_script:
+  - echo "[INFO] Starting..."
+
+stages:
+  - build
+  - test
+
+compile:
+  stage: build
+  artifacts:
+    name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
+    untrack: true
+    expire_in: 1 week
+  script:
+    - ./configure && make
+
+run:
+  stage: test
+  dependencies:
+    - compile
+  script:
+    - echo "[INFO] Testing..."
+    - sPuReMD/bin/spuremd data/benchmarks/water/water_6540.pdb data/benchmarks/water/ffield.water environ/control_water
+    - echo "[INFO] Done testing"
+
+after_script:
+  - echo "[INFO] Complete"
-- 
GitLab