diff --git a/.travis.yml b/.travis.yml index 82d3d5593..6bc922423 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -dist: trusty +dist: focal sudo: required cache: @@ -14,12 +14,18 @@ addons: language: php php: - - 8.0 + - 8.0.19 + +env: + global: + # Travis Token. + secure: "u6jLZiftQdb8Ozxngu5sgwmnXeUyvNF3/Y+5eX3+Xyb7Sm6K++cBLbYl/zNbuzp1rZE5dn3pVTQc4tstVXZw2B5KjCd64r9HE9gdwCEnS/AA/w3wGlaEBinTzKOrrN1EvqNNhnJUY2JmqEYVom+UYwLZWIIKM/5OoaeidNqHDvImZZLAeYfPMGnySsFC01yCzrOn6jv8Bwu00dQPVEOQylVEV5qgdGYz6CvGGslcvGxhvR0qdY/IXhrA0yxIk1yA6vu1mQpCSjGpPLy024JhcqRr3AzjH2N0QRKlL7vcNFxl/OC0qcK2bOl8lcQydeC5LRp92eeCLfMfvqHDqLJKvebCsvaZSmqlzCURlcHaJOM5bce7XPVyNLdwnfppgSacocGol38qxfEc09qV4AZnklwigYCfnk346oSaocKApy48KRW4cNXL45U7+z10IzVAENGwbyyuwdvKHhDtMCgMd8eeYfRF5EvENOKVSG02Kca8X2fLBhmJsXkFcBEW7pSRZKxixkIkuAwEYSQW/lvvM4LJmd2np7vZDEMh1dmf7TBRBygDVmM7vtdYRSzivR/T9nH+mXPP9FcjVvlPPeWAEaqtLPmmONmYRjDRcoHjJh3YnSMpvVs8wejDf7iS6A44cI6xZQRoEoCFA/WUu5EnzmoOCY7HvZ62xnZ0I9nNyL4=" services: - docker before_install: + - set -e # Composer Configurations. - export COMPOSER_MEMORY_LIMIT=-1 # Set php memory limit to -1 so composer update will not fail - export COMPOSER_EXIT_ON_PATCH_FAILURE=1 # To enforce throwing an error and stopping package installation/update immediately @@ -29,7 +35,7 @@ before_install: - composer install --prefer-dist --no-interaction # Install docker and our docker containers. - sh scripts/social/ci/install-docker.sh - - docker-compose -f docker-compose-ci.yml up -d + - docker compose -f docker-compose-ci.yml up -d script: - docker exec -i social_ci_web bash /var/www/scripts/social/install/install_script.sh diff --git a/composer.json b/composer.json index be1e3d54a..fbac0a147 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "blackfire/php-sdk": "^v1.27.1", "drupal/redis": "^1.5", "drush/drush": "11.*@stable", - "goalgorilla/open_social": "dev-main", + "goalgorilla/open_social": "dev-feature/3260861-php-8-support-updated-branch", "goalgorilla/open_social_scripts": "^3.0" }, "require-dev": { diff --git a/docker-compose-ci.yml b/docker-compose-ci.yml index 7ac4bb656..04d65e08c 100644 --- a/docker-compose-ci.yml +++ b/docker-compose-ci.yml @@ -1,8 +1,8 @@ -version: "2" - +# See: https://docs.docker.com/compose/compose-file/ +# See: https://github.com/compose-spec/compose-spec/blob/master/spec.md services: web_scripts: - image: goalgorilla/open_social_docker:ci + image: goalgorilla/open_social_docker:cid9 volumes: - ./:/var/www:delegated depends_on: @@ -12,7 +12,7 @@ services: container_name: social_ci_web_scripts web: - image: goalgorilla/open_social_docker:ci + image: goalgorilla/open_social_docker:cid9 volumes: - ./:/var/www:delegated depends_on: @@ -34,7 +34,7 @@ services: volumes: - db_data:/var/lib/mysql ports: - - "3307:3306" + - "3306" container_name: social_ci_db command: mysqld --max_allowed_packet=16M @@ -62,7 +62,7 @@ services: container_name: social_ci_selenium behat: - image: goalgorilla/open_social_docker:ci + image: goalgorilla/open_social_docker:cid9 volumes: - ./:/var/www:delegated depends_on: diff --git a/docker-compose.blackfire.yml b/docker-compose.blackfire.yml index 9137c5d80..6717d14fd 100644 --- a/docker-compose.blackfire.yml +++ b/docker-compose.blackfire.yml @@ -1,11 +1,9 @@ -version: "2" - services: web: - image: goalgorilla/open_social_docker:d9 + image: goalgorilla/open_social_docker:devd9 volumes: - ./:/var/www:delegated - links: + depends_on: - db - mailcatcher - redis @@ -46,8 +44,8 @@ services: image: selenium/standalone-firefox-debug:2.48.2 volumes: - ./html/profiles/contrib/social/tests/behat/features/files/:/files:delegated - links: - - web:web + depends_on: + - web ports: - "4444" - "5900" @@ -58,13 +56,13 @@ services: container_name: social_selenium behat: - image: goalgorilla/open_social_docker:d9 + image: goalgorilla/open_social_docker:devd9 volumes: - ./:/var/www:delegated - links: - - web:web - - db:db - - selenium:selenium + depends_on: + - web + - db + - selenium environment: - DRUPAL_SETTINGS=development network_mode: "bridge" @@ -85,7 +83,7 @@ services: image: goalgorilla/open_social_docker:cron volumes: - ./:/var/www - links: + depends_on: - db - mailcatcher environment: diff --git a/docker-compose.yml b/docker-compose.yml index 27d39a813..ee13278b4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,8 @@ +# See: https://docs.docker.com/compose/compose-file/ +# See: https://github.com/compose-spec/compose-spec/blob/master/spec.md services: web: - image: goalgorilla/open_social_docker:d9 + image: goalgorilla/open_social_docker:devd9 volumes: - ./:/var/www:delegated depends_on: @@ -51,7 +53,7 @@ services: container_name: social_selenium behat: - image: goalgorilla/open_social_docker:d9 + image: goalgorilla/open_social_docker:devd9 volumes: - ./:/var/www:delegated depends_on: