From 0cf6cb205192555afca1065e2983acd696d1e774 Mon Sep 17 00:00:00 2001 From: Too Date: Thu, 21 Jun 2018 16:14:55 +0800 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..940f9e0f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,17 @@ +before_script: + - bash .gitlab-ci.sh +stages: + - testing + - staging +variables: + MYSQL_DATABASE: default + MYSQL_USER: default + MYSQL_PASSWORD: secret + MYSQL_ROOT_PASSWORD: root +unitTesting: + stage: testing + image: php:7.0.13 + services: + - mysql:5.7 + script: + - vendor/bin/phpunit --coverage-text --colors=never --configuration phpunit.xml \ No newline at end of file