From 98aae9e5b384fbfb5a9a974617ae1070ac48a3f8 Mon Sep 17 00:00:00 2001 From: Mehmet Korkmaz Date: Thu, 13 Dec 2018 18:14:26 +0300 Subject: [PATCH] Added Jenkinsfile --- Jenkinsfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..7d7bdf8 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,29 @@ +pipeline { + agent { + node { + label 'php' + } + + } + stages { + stage('Get files') { + parallel { + stage('Get files') { + steps { + git(url: 'https://github.com/selamiphp/console.git', branch: 'master') + } + } + stage('run redis') { + steps { + sh 'composer install' + } + } + stage('test') { + steps { + sh 'composer run unit-tests' + } + } + } + } + } +} \ No newline at end of file