Browse Source

Jenkins CI setup, try eight

Timothy J. Warren 2 months ago
parent
commit
edea686f4c
1 changed files with 11 additions and 20 deletions
  1. 11
    20
      Jenkinsfile

+ 11
- 20
Jenkinsfile View File

@@ -1,24 +1,15 @@
1
-pipeline {
2
-	agent none
3
-	stages {
4
-		stage('PHP 7') {
5
-			agent {
6
-				node {
7
-					checkout scm
8
-					docker.image('memcached:latest').withRun('-p 11211:11211') { c ->
9
-						docker.image('redis:latest').withRun('-p 6379:6379') { d ->
10
-							docker.image('php:7') {
11
-								steps {
12
-									sh 'sh build/docker_install.sh > /dev/null'
13
-									sh 'curl -sS https://getcomposer.org/installer | php'
14
-									sh 'php composer.phar install --ignore-platform-reqs'
15
-									sh 'phpdbg -qrr -- ./vendor/bin/phpunit --coverage-text --colors=never'
16
-								}
17
-							}
18
-						}
19
-					}
1
+node {
2
+	checkout scm
3
+	docker.image('memcached:latest').withRun('-p 11211:11211') { c ->
4
+		docker.image('redis:latest').withRun('-p 6379:6379') { d ->
5
+			docker.image('php:7.2') {
6
+				steps {
7
+					sh 'sh build/docker_install.sh > /dev/null'
8
+					sh 'curl -sS https://getcomposer.org/installer | php'
9
+					sh 'php composer.phar install --ignore-platform-reqs'
10
+					sh 'phpdbg -qrr -- ./vendor/bin/phpunit --coverage-text --colors=never'
20 11
 				}
21 12
 			}
22 13
 		}
23 14
 	}
24
-}
15
+}