Skip to content

Commit

Permalink
Merge pull request #283 from Nosto/hotfix/fix-jenkinsfile
Browse files Browse the repository at this point in the history
Update JenkinsFile
  • Loading branch information
supercid authored Mar 20, 2019
2 parents de43632 + f485562 commit aef9fa0
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 158 deletions.
14 changes: 5 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ pipeline {
catchError {
sh "./libs/bin/phpcs --standard=ruleset.xml --severity=10 --report=checkstyle --report-file=chkphpcs.xml . || true"
}
archiveArtifacts 'chkphpcs.xml'
}
}

stage('Copy-Paste Detection') {
steps {
catchError {
sh "./libs/bin/phpcpd --exclude=libs --exclude=build --log-pmd=phdpcpd.xml app || true"
sh "./libs/bin/phpcpd --exclude=libs --exclude=build --log-pmd=phdpcpd.xml ."
}
archiveArtifacts 'phdpcpd.xml'
}
}

Expand All @@ -39,14 +41,7 @@ pipeline {
catchError {
sh "./libs/bin/phpmd . xml codesize,naming,unusedcode,controversial,design --exclude libs,var,build,tests --reportfile pmdphpmd.xml || true"
}
}
}

stage('Package') {
steps {
script {
version = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
}
archiveArtifacts 'pmdphpmd.xml'
}
}

Expand All @@ -55,6 +50,7 @@ pipeline {
catchError {
sh "./libs/bin/phan --config-file=phan.php --output-mode=checkstyle --output=chkphan.xml || true"
}
archiveArtifacts 'chkphan.xml'
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"require-dev": {
"phing/phing": "2.*",
"phan/phan": "^0.8.9",
"phpmd/phpmd": "^2.5",
"phpmd/phpmd": "^2.6",
"squizlabs/php_codesniffer": "2.6.*",
"sebastian/phpcpd": "*",
"wimg/php-compatibility": "^8.0",
"wimg/php-compatibility": "^9.0",
"prestashop/ps": "1.7.1.1",
"icanboogie/cldr": "1.8.0"
},
Expand Down
Loading

0 comments on commit aef9fa0

Please sign in to comment.