Compare commits

..

No commits in common. "66240c2d654b41e8b4ff258653e9afa2e0cde655" and "272ec3568de81a57ec4bab4837a108d6910131e6" have entirely different histories.

2 changed files with 0 additions and 63 deletions

59
Jenkinsfile vendored
View File

@ -1,59 +0,0 @@
pipeline {
agent {
node {
label 'mapguesser'
customWorkspace 'workspace/mapguesser'
}
}
stages {
stage('Install composer') {
agent {
dockerfile {
filename 'docker/Dockerfile-test'
dir '.'
reuseNode true
}
}
steps {
sh 'composer install'
}
}
stage('Unit Testing') {
agent {
dockerfile {
filename 'docker/Dockerfile-test'
dir '.'
reuseNode true
}
}
steps {
sh 'vendor/bin/phpunit --log-junit unit_test_results.xml --testdox tests'
}
post {
success {
archiveArtifacts 'unit_test_results.xml'
}
}
}
stage('Static Code Analysis') {
agent {
dockerfile {
filename 'docker/Dockerfile-test'
dir '.'
reuseNode true
}
}
steps {
sh 'php -d memory_limit=1G vendor/bin/phpstan analyse -c phpstan.neon --error-format=prettyJson > static_code_analysis_results.json'
}
post {
success {
archiveArtifacts 'static_code_analysis_results.json'
}
}
}
}
}

View File

@ -1,4 +0,0 @@
FROM php:7.4.7-cli-buster
RUN apt-get update && apt-get install -y unzip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer