summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-12-11 22:01:33 +0300
committerAndrew Dolgov <[email protected]>2022-12-11 22:01:33 +0300
commitc459ef13d6be12a1358f0e6c30a071597d79dee1 (patch)
tree99b5b18af976e77d930ae185d3649b522d41ff8b
parente5483f94787f0a53a7d864d1375b0765d6cb7131 (diff)
add sample jenkinsfile
-rw-r--r--Jenkinsfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..c0adb8d
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,19 @@
+pipeline {
+ agent any
+
+ options {
+ buildDiscarder(logRotator(numToKeepStr: '5'))
+ }
+
+ stages {
+ stage('phpstan') {
+ steps {
+ sh """
+ docker run --rm -v ${env.WORKSPACE}:/src/tt-rss/lib/local \
+ --workdir /src/tt-rss registry.fakecake.org/cthulhoo/ttrss-fpm-pgsql-static:latest\
+ php81 ./vendor/bin/phpstan analyse lib/local --memory-limit=1G
+ """
+ }
+ }
+ }
+}