Skip to main content
Glama
config.yml3.55 kB
workflows: version: 2 main: jobs: - php80-build - php81-build - php82-build - php83-build version: 2 job-references: mysql_image: &mysql_image circleci/mysql:8.0 setup_environment: &setup_environment name: 'Setup Environment Variables' command: | echo "export PATH=$HOME/.composer/vendor/bin:$PATH" >> $BASH_ENV source /home/circleci/.bashrc install_dependencies: &install_dependencies name: 'Install Dependencies' command: | sudo apt-get update && sudo apt-get install subversion sudo -E docker-php-ext-install mysqli sudo sh -c "printf '\ndeb http://ftp.us.debian.org/debian sid main\n' >> /etc/apt/sources.list" sudo apt-get update && sudo apt-get install mysql-client-5.7 php_job: &php_job environment: - WP_TESTS_DIR: '/tmp/wordpress-tests-lib' - WP_CORE_DIR: '/tmp/wordpress/' steps: - checkout - run: *setup_environment - run: *install_dependencies - run: name: 'Run Tests' command: | composer global require "phpunit/phpunit=5.7.*" composer global require wp-coding-standards/wpcs phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs phpcs rm -rf $WP_TESTS_DIR $WP_CORE_DIR bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 latest phpunit WP_MULTISITE=1 phpunit jobs: php56-build: <<: *php_job docker: - image: circleci/php:5.6 - image: *mysql_image steps: - checkout - run: *setup_environment - run: *install_dependencies - run: name: 'Run Tests' command: | composer global require "phpunit/phpunit=5.7.*" composer global require wp-coding-standards/wpcs phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs phpcs SKIP_DB_CREATE=false rm -rf $WP_TESTS_DIR $WP_CORE_DIR bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 latest $SKIP_DB_CREATE phpunit WP_MULTISITE=1 phpunit SKIP_DB_CREATE=true rm -rf $WP_TESTS_DIR $WP_CORE_DIR bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 trunk $SKIP_DB_CREATE phpunit WP_MULTISITE=1 phpunit SKIP_DB_CREATE=true php70-build: <<: *php_job docker: - image: circleci/php:7.0 - image: *mysql_image php71-build: <<: *php_job docker: - image: circleci/php:7.1 - image: *mysql_image php72-build: <<: *php_job docker: - image: circleci/php:7.2 - image: *mysql_image php73-build: <<: *php_job docker: - image: circleci/php:7.3 - image: *mysql_image php74-build: <<: *php_job docker: - image: circleci/php:7.4 - image: *mysql_image

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Automattic/wordpress-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server