From 96fd36022e278562cd3d74c70c46744cf162f717 Mon Sep 17 00:00:00 2001
From: Eino Tuominen <eino@utu.fi>
Date: Fri, 16 Dec 2016 08:54:24 +0200
Subject: [PATCH] CI script

---
 .gitlab-ci.yml | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dfa4e14..6e43134 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,17 @@
 ---
-before:
+image: python:2
+
+variables:
+  PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache"
+
+cache:
+  paths:
+    - "$CI_PROJECT_DIR/pip-cache"
+  key: "$CI_PROJECT_ID"
+
+test:
   script:
-  - apt install python-pip
   - pip install ansible
   - ansible --version
   - printf '[defaults]\nroles_path=../' >ansible.cfg
-
-playbook:
-  script:
-    - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
+  - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
-- 
GitLab