From a3abd93059b37c4e6cad4568494ee21eb97a2fec Mon Sep 17 00:00:00 2001 From: Benjamin Bolton <7146063+benpbolton@users.noreply.github.com> Date: Thu, 5 Sep 2024 15:44:59 -0600 Subject: [PATCH 1/2] WIP: issue-167 From 2099b7f5d051bce1e49236f4d08c7f863ed98da3 Mon Sep 17 00:00:00 2001 From: Benjamin Bolton <7146063+benpbolton@users.noreply.github.com> Date: Mon, 9 Sep 2024 07:55:22 -0600 Subject: [PATCH 2/2] Remove buddy --- buddy.yml | 174 ------------------------------------------------------ 1 file changed, 174 deletions(-) delete mode 100644 buddy.yml diff --git a/buddy.yml b/buddy.yml deleted file mode 100644 index 667fa603..00000000 --- a/buddy.yml +++ /dev/null @@ -1,174 +0,0 @@ -- pipeline: "Pull Request Tests" - trigger_mode: "ON_EVERY_PUSH" - ref_name: "refs/pull/*" - ref_type: "WILDCARD" - priority: "NORMAL" - target_site_url: "https://github.com/alleyinteractive/wp-newsletter-builder" - fetch_all_refs: true - fail_on_prepare_env_warning: true - trigger_condition: "ALWAYS" - actions: - - action: "Gitignored files check" - type: "BUILD" - working_directory: "/buddy/wp-newsletter-builder" - docker_image_name: "alleyops/ci-resources" - docker_image_tag: "8.0-fpm-wp" - execute_commands: - - "if [[ ! -z $(git ls-files -i --exclude-standard) ]]; then exit 1; fi" - volume_mappings: - - "/:/buddy/wp-newsletter-builder" - trigger_condition: "ALWAYS" - shell: "BASH" - run_next_parallel: true - - action: "Check for git conflicts" - type: "BUILD" - working_directory: "/buddy/wp-newsletter-builder" - docker_image_name: "alleyops/ci-resources" - docker_image_tag: "8.0-fpm-wp" - execute_commands: - - "! git grep -E '<<<<<<< |>>>>>>> ' -- './*' ':(exclude)buddy.yml' ':(exclude).buddy/*'" - volume_mappings: - - "/:/buddy/wp-newsletter-builder" - trigger_condition: "ALWAYS" - shell: "BASH" - - action: "Composer install" - type: "BUILD" - working_directory: "/buddy/wp-newsletter-builder" - docker_image_name: "alleyops/ci-resources" - docker_image_tag: "8.0-fpm-wp" - execute_commands: - - "composer install -q" - volume_mappings: - - "/:/buddy/wp-newsletter-builder" - trigger_condition: "ALWAYS" - shell: "BASH" - - action: "phpunit" - type: "BUILD" - working_directory: "/buddy/wp-newsletter-builder" - docker_image_name: "alleyops/ci-resources" - docker_image_tag: "8.0-fpm-wp" - execute_commands: - - "composer phpunit" - setup_commands: - - "echo \"extension=memcache.so\" >> /usr/local/etc/php/conf.d/buddy.ini" - services: - - type: "MARIADB" - version: "10.3" - connection: - host: "mariadb" - port: 3306 - user: "root" - password: "root" - db: "wordpress_unit_tests" - - type: "MEMCACHED" - version: "1.5.6" - connection: - host: "memcached" - port: 11211 - volume_mappings: - - "/:/buddy/wp-newsletter-builder" - trigger_condition: "ALWAYS" - shell: "BASH" - run_next_parallel: true - - action: "composer phpcs" - type: "BUILD" - working_directory: "/buddy/wp-newsletter-builder" - docker_image_name: "alleyops/ci-resources" - docker_image_tag: "8.0-fpm-wp" - execute_commands: - - "composer phpcs" - volume_mappings: - - "/:/buddy/wp-newsletter-builder" - trigger_condition: "ALWAYS" - shell: "BASH" - - action: "npm audit" - type: "BUILD" - working_directory: "/buddy/wp-newsletter-builder" - docker_image_name: "library/node" - docker_image_tag: "20" - execute_commands: - - "npm audit --audit-level=high --production --cache /buddy/wp-newsletter-builder/.npm" - volume_mappings: - - "/:/buddy/wp-newsletter-builder" - trigger_condition: "ALWAYS" - shell: "BASH" - - action: "npm ci" - type: "BUILD" - working_directory: "/buddy/wp-newsletter-builder" - docker_image_name: "library/node" - docker_image_tag: "20" - execute_commands: - - "npm ci --cache /buddy/wp-newsletter-builder/.npm" - volume_mappings: - - "/:/buddy/wp-newsletter-builder" - trigger_condition: "ALWAYS" - shell: "BASH" - - action: "npm run lint" - type: "BUILD" - working_directory: "/buddy/wp-newsletter-builder" - docker_image_name: "library/node" - docker_image_tag: "20" - execute_commands: - - "npm run lint" - volume_mappings: - - "/:/buddy/wp-newsletter-builder" - trigger_condition: "ALWAYS" - shell: "BASH" - run_next_parallel: true - - action: "npm run stylelint" - type: "BUILD" - working_directory: "/buddy/wp-newsletter-builder" - docker_image_name: "library/node" - docker_image_tag: "20" - execute_commands: - - "npm run stylelint" - volume_mappings: - - "/:/buddy/wp-newsletter-builder" - trigger_condition: "ALWAYS" - shell: "BASH" - - action: "npm run test" - type: "BUILD" - working_directory: "/buddy/wp-newsletter-builder" - docker_image_name: "library/node" - docker_image_tag: "20" - execute_commands: - - "npm run test" - volume_mappings: - - "/:/buddy/wp-newsletter-builder" - trigger_condition: "ALWAYS" - shell: "BASH" - - action: "npm run build" - type: "BUILD" - working_directory: "/buddy/wp-newsletter-builder" - docker_image_name: "library/node" - docker_image_tag: "20" - execute_commands: - - "npm run build" - volume_mappings: - - "/:/buddy/wp-newsletter-builder" - trigger_condition: "ALWAYS" - shell: "BASH" - variables: - - key: "CACHEDIR" - value: "/tmp/test-cache" - type: "VAR" - description: "Cache folder for remote requests." - - key: "SKIP_DISCOVERY" - value: "true" - type: "VAR" - - key: "WP_CORE_DIR" - value: "/tmp/wordpress" - type: "VAR" - description: "WordPress checkout folder." - - key: "WP_VERSION" - value: "latest" - type: "VAR" - - key: "WP_DB_PASSWORD" - value: "root" - type: "VAR" - - key: "WP_DB_HOST" - value: "mariadb" - type: "VAR" - - key: "WP_SKIP_DB_CREATE" - value: "true" - type: "VAR"