From 3138d8d8c38e82a14c90464c9dc0409fd0abfb9d Mon Sep 17 00:00:00 2001
From: Ray Andrew <13515073@std.stei.itb.ac.id>
Date: Fri, 27 Apr 2018 01:12:27 +0700
Subject: [PATCH] Initial commit

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 85c77e1..06049d7 100755
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,6 +5,7 @@ services:
 
 stages:
   - test
+  - deploy
 
 cache:
   paths:
@@ -31,7 +32,7 @@ before_script:
   - docker-php-ext-enable xdebug
   - docker-php-ext-configure intl
   - docker-php-ext-install json intl mysqli
-  - docker-php-ext-enable json intl mysqli debug
+  - docker-php-ext-enable json intl mysqli xdebug
 
   - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
   - http_proxy=${HTTP_PROXY} composer global require hirak/prestissimo
@@ -45,3 +46,16 @@ test:
   artifacts:
     paths:
     - report/
+
+pages:
+  stage: deploy
+  dependencies:
+    - test
+  script:
+    - mv report public
+  artifacts:
+    paths:
+      - public
+    expire_in: 30days
+  only:
+    - master
-- 
GitLab