summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-10-02 12:47:23 +0300
committerAndrew Dolgov <[email protected]>2022-10-02 12:47:23 +0300
commit2013dd1526f4b14429f945cc93e82bf8b7c8ba3d (patch)
tree99ca5dcf582d2c12ec1ad1aecfd20eb06335d21e
parenta2cb34c0abb519b997b797270e234e7a2e7d1b31 (diff)
add Jenkinsfile
-rw-r--r--Jenkinsfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..c3b84a5
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,18 @@
+pipeline {
+ agent any
+
+ stages {
+ stage('phpstan') {
+ steps {
+ sh """
+ # php -d memory_limit=-1 ....
+ docker run --rm \
+ --workdir /app \
+ -v ${env.WORKSPACE}:/app \
+ php:8.1-cli \
+ php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G
+ """
+ }
+ }
+ }
+}