|
|
@@ -149,6 +149,16 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ stage('Build messenger') {
|
|
|
+ steps {
|
|
|
+ script {
|
|
|
+ dir('modules/boonex/messenger') {
|
|
|
+ echo "Building messenger"
|
|
|
+ sh 'yarn && yarn build'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
stage('Install dependencies') {
|
|
|
steps {
|
|
|
script {
|
|
|
@@ -204,20 +214,173 @@ pipeline {
|
|
|
script {
|
|
|
echo "Running PHP Copy Paste Detector"
|
|
|
sh '''
|
|
|
- find . -type d -name updates -prune -o \
|
|
|
- -type d -name plugins -prune -o \
|
|
|
- -type d -name plugins_public -prune -o \
|
|
|
- -type d -name cache -prune -o \
|
|
|
- -type d -name cache_public -prune -o \
|
|
|
- -type d -name storage -prune -o \
|
|
|
- -type d -name logs -prune -o \
|
|
|
- -type d -name tmp -prune -o \
|
|
|
- -type d -name samples -prune -o \
|
|
|
- -type d -path './tests/vendor' -prune -o \
|
|
|
- -type d -path './upgrade' -prune -o \
|
|
|
- -type d -path './modules/boonex/membership_pricing' -prune -o \
|
|
|
- -type f -name '*.php' ! -name 'header.inc.php' ! -name 'BxTemplStudioFormsField.php' ! -name 'config.php' \
|
|
|
- -print | xargs -r ${PHP} -d memory_limit=512M /usr/bin/phpcpd.phar --min-lines 6 --log-pmd logs/phpcpd.xml || true
|
|
|
+${PHP} -d memory_limit=512M /usr/bin/phpcpd.phar --min-lines 18 --log-pmd logs/phpcpd.xml \
|
|
|
+ --exclude plugins \
|
|
|
+ --exclude plugins_public \
|
|
|
+ --exclude modules/boonex/xero/plugins \
|
|
|
+ --exclude upgrade \
|
|
|
+ --exclude cache \
|
|
|
+ --exclude cache_public \
|
|
|
+ --exclude storage \
|
|
|
+ --exclude logs \
|
|
|
+ --exclude tmp \
|
|
|
+ --exclude samples \
|
|
|
+ --exclude tests \
|
|
|
+ --exclude modules/boonex/lucid/data \
|
|
|
+ --exclude modules/boonex/decorous/data \
|
|
|
+ --exclude modules/boonex/protean/data \
|
|
|
+ --exclude modules/boonex/artificer/data \
|
|
|
+ --exclude modules/boonex/membership_pricing \
|
|
|
+ --exclude modules/boonex/se_migration \
|
|
|
+ --exclude modules/boonex/dolphin_migration \
|
|
|
+ --exclude modules/boonex/anon_follow \
|
|
|
+ --exclude modules/boonex/plyr/updates \
|
|
|
+ --exclude modules/boonex/classes/updates \
|
|
|
+ --exclude modules/boonex/nexus/updates \
|
|
|
+ --exclude modules/boonex/dolphin_migration/updates \
|
|
|
+ --exclude modules/boonex/accounts/updates \
|
|
|
+ --exclude modules/boonex/invites/updates \
|
|
|
+ --exclude modules/boonex/files/updates \
|
|
|
+ --exclude modules/boonex/intercom/updates \
|
|
|
+ --exclude modules/boonex/oauth2/updates \
|
|
|
+ --exclude modules/boonex/linkedin_connect/updates \
|
|
|
+ --exclude modules/boonex/videos/updates \
|
|
|
+ --exclude modules/boonex/market/updates \
|
|
|
+ --exclude modules/boonex/russian/updates \
|
|
|
+ --exclude modules/boonex/decorous/updates \
|
|
|
+ --exclude modules/boonex/groups/updates \
|
|
|
+ --exclude modules/boonex/lucid/updates \
|
|
|
+ --exclude modules/boonex/api/updates \
|
|
|
+ --exclude modules/boonex/fontawesome/updates \
|
|
|
+ --exclude modules/boonex/spaces/updates \
|
|
|
+ --exclude modules/boonex/elasticsearch/updates \
|
|
|
+ --exclude modules/boonex/google_connect/updates \
|
|
|
+ --exclude modules/boonex/froala/updates \
|
|
|
+ --exclude modules/boonex/twitter_connect/updates \
|
|
|
+ --exclude modules/boonex/payment/updates \
|
|
|
+ --exclude modules/boonex/artificer/updates \
|
|
|
+ --exclude modules/boonex/events/updates \
|
|
|
+ --exclude modules/boonex/messenger/updates \
|
|
|
+ --exclude modules/boonex/donations/updates \
|
|
|
+ --exclude modules/boonex/google_tagmanager/updates \
|
|
|
+ --exclude modules/boonex/contact/updates \
|
|
|
+ --exclude modules/boonex/polls/updates \
|
|
|
+ --exclude modules/boonex/developer/updates \
|
|
|
+ --exclude modules/boonex/mailchimp/updates \
|
|
|
+ --exclude modules/boonex/snipcart/updates \
|
|
|
+ --exclude modules/boonex/chat_plus/updates \
|
|
|
+ --exclude modules/boonex/persons/updates \
|
|
|
+ --exclude modules/boonex/glossary/updates \
|
|
|
+ --exclude modules/boonex/xero/updates \
|
|
|
+ --exclude modules/boonex/charts/updates \
|
|
|
+ --exclude modules/boonex/credits/updates \
|
|
|
+ --exclude modules/boonex/acl/updates \
|
|
|
+ --exclude modules/boonex/massmailer/updates \
|
|
|
+ --exclude modules/boonex/ocean/updates \
|
|
|
+ --exclude modules/boonex/markerio/updates \
|
|
|
+ --exclude modules/boonex/english/updates \
|
|
|
+ --exclude modules/boonex/profiler/updates \
|
|
|
+ --exclude modules/boonex/shopify/updates \
|
|
|
+ --exclude modules/boonex/timeline/updates \
|
|
|
+ --exclude modules/boonex/forum/updates \
|
|
|
+ --exclude modules/boonex/smtpmailer/updates \
|
|
|
+ --exclude modules/boonex/albums/updates \
|
|
|
+ --exclude modules/boonex/antispam/updates \
|
|
|
+ --exclude modules/boonex/photos/updates \
|
|
|
+ --exclude modules/boonex/courses/updates \
|
|
|
+ --exclude modules/boonex/ads/updates \
|
|
|
+ --exclude modules/boonex/posts/updates \
|
|
|
+ --exclude modules/boonex/protean/updates \
|
|
|
+ --exclude modules/boonex/wiki/updates \
|
|
|
+ --exclude modules/boonex/facebook_connect/updates \
|
|
|
+ --exclude modules/boonex/convos/updates \
|
|
|
+ --exclude modules/boonex/dolphin_connect/updates \
|
|
|
+ --exclude modules/boonex/tasks/updates \
|
|
|
+ --exclude modules/boonex/help_tours/updates \
|
|
|
+ --exclude modules/boonex/stripe_connect/updates \
|
|
|
+ --exclude modules/boonex/stream/updates \
|
|
|
+ --exclude modules/boonex/datafox/updates \
|
|
|
+ --exclude modules/boonex/notifications/updates \
|
|
|
+ --exclude modules/boonex/attendant/updates \
|
|
|
+ --exclude modules/boonex/channels/updates \
|
|
|
+ --exclude modules/boonex/analytics/updates \
|
|
|
+ --exclude modules/boonex/una_connect/updates \
|
|
|
+ --exclude modules/boonex/quoteofday/updates \
|
|
|
+ --exclude modules/boonex/organizations/updates \
|
|
|
+ --exclude modules/boonex/plyr/install/config.php \
|
|
|
+ --exclude modules/boonex/classes/install/config.php \
|
|
|
+ --exclude modules/boonex/nexus/install/config.php \
|
|
|
+ --exclude modules/boonex/dolphin_migration/install/config.php \
|
|
|
+ --exclude modules/boonex/accounts/install/config.php \
|
|
|
+ --exclude modules/boonex/invites/install/config.php \
|
|
|
+ --exclude modules/boonex/files/install/config.php \
|
|
|
+ --exclude modules/boonex/intercom/install/config.php \
|
|
|
+ --exclude modules/boonex/oauth2/install/config.php \
|
|
|
+ --exclude modules/boonex/linkedin_connect/install/config.php \
|
|
|
+ --exclude modules/boonex/videos/install/config.php \
|
|
|
+ --exclude modules/boonex/market/install/config.php \
|
|
|
+ --exclude modules/boonex/russian/install/config.php \
|
|
|
+ --exclude modules/boonex/decorous/install/config.php \
|
|
|
+ --exclude modules/boonex/groups/install/config.php \
|
|
|
+ --exclude modules/boonex/lucid/install/config.php \
|
|
|
+ --exclude modules/boonex/api/install/config.php \
|
|
|
+ --exclude modules/boonex/fontawesome/install/config.php \
|
|
|
+ --exclude modules/boonex/spaces/install/config.php \
|
|
|
+ --exclude modules/boonex/elasticsearch/install/config.php \
|
|
|
+ --exclude modules/boonex/google_connect/install/config.php \
|
|
|
+ --exclude modules/boonex/froala/install/config.php \
|
|
|
+ --exclude modules/boonex/twitter_connect/install/config.php \
|
|
|
+ --exclude modules/boonex/payment/install/config.php \
|
|
|
+ --exclude modules/boonex/artificer/install/config.php \
|
|
|
+ --exclude modules/boonex/events/install/config.php \
|
|
|
+ --exclude modules/boonex/messenger/install/config.php \
|
|
|
+ --exclude modules/boonex/donations/install/config.php \
|
|
|
+ --exclude modules/boonex/google_tagmanager/install/config.php \
|
|
|
+ --exclude modules/boonex/contact/install/config.php \
|
|
|
+ --exclude modules/boonex/polls/install/config.php \
|
|
|
+ --exclude modules/boonex/developer/install/config.php \
|
|
|
+ --exclude modules/boonex/mailchimp/install/config.php \
|
|
|
+ --exclude modules/boonex/snipcart/install/config.php \
|
|
|
+ --exclude modules/boonex/chat_plus/install/config.php \
|
|
|
+ --exclude modules/boonex/persons/install/config.php \
|
|
|
+ --exclude modules/boonex/glossary/install/config.php \
|
|
|
+ --exclude modules/boonex/xero/install/config.php \
|
|
|
+ --exclude modules/boonex/charts/install/config.php \
|
|
|
+ --exclude modules/boonex/credits/install/config.php \
|
|
|
+ --exclude modules/boonex/acl/install/config.php \
|
|
|
+ --exclude modules/boonex/massmailer/install/config.php \
|
|
|
+ --exclude modules/boonex/ocean/install/config.php \
|
|
|
+ --exclude modules/boonex/markerio/install/config.php \
|
|
|
+ --exclude modules/boonex/english/install/config.php \
|
|
|
+ --exclude modules/boonex/profiler/install/config.php \
|
|
|
+ --exclude modules/boonex/shopify/install/config.php \
|
|
|
+ --exclude modules/boonex/timeline/install/config.php \
|
|
|
+ --exclude modules/boonex/forum/install/config.php \
|
|
|
+ --exclude modules/boonex/smtpmailer/install/config.php \
|
|
|
+ --exclude modules/boonex/albums/install/config.php \
|
|
|
+ --exclude modules/boonex/antispam/install/config.php \
|
|
|
+ --exclude modules/boonex/photos/install/config.php \
|
|
|
+ --exclude modules/boonex/courses/install/config.php \
|
|
|
+ --exclude modules/boonex/ads/install/config.php \
|
|
|
+ --exclude modules/boonex/posts/install/config.php \
|
|
|
+ --exclude modules/boonex/protean/install/config.php \
|
|
|
+ --exclude modules/boonex/wiki/install/config.php \
|
|
|
+ --exclude modules/boonex/facebook_connect/install/config.php \
|
|
|
+ --exclude modules/boonex/convos/install/config.php \
|
|
|
+ --exclude modules/boonex/dolphin_connect/install/config.php \
|
|
|
+ --exclude modules/boonex/tasks/install/config.php \
|
|
|
+ --exclude modules/boonex/help_tours/install/config.php \
|
|
|
+ --exclude modules/boonex/stripe_connect/install/config.php \
|
|
|
+ --exclude modules/boonex/stream/install/config.php \
|
|
|
+ --exclude modules/boonex/datafox/install/config.php \
|
|
|
+ --exclude modules/boonex/notifications/install/config.php \
|
|
|
+ --exclude modules/boonex/attendant/install/config.php \
|
|
|
+ --exclude modules/boonex/channels/install/config.php \
|
|
|
+ --exclude modules/boonex/analytics/install/config.php \
|
|
|
+ --exclude modules/boonex/una_connect/install/config.php \
|
|
|
+ --exclude modules/boonex/quoteofday/install/config.php \
|
|
|
+ --exclude modules/boonex/organizations/install/config.php \
|
|
|
+ . || true
|
|
|
'''
|
|
|
|
|
|
echo "Checking log files:"
|
|
|
@@ -499,4 +662,4 @@ EOF
|
|
|
echo 'UNA CI/CD Pipeline completed with test failures!'
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|