docker with php74 and mysql 8 was added

This commit is contained in:
Alvaro Flores
2022-05-18 21:25:21 +00:00
committed by Mauricio Veliz
parent 3c363b498d
commit fe49fd1d49

View File

@@ -3,11 +3,24 @@ jobs:
build: build:
working_directory: ~/processmaker working_directory: ~/processmaker
docker: docker:
- image: devopsstacks/pm:n225-phpunit - image: devopsstacks/pm:n275-phpunit
- image: circleci/mysql:8.0.13-ram
command: |
mysqld --default-authentication-plugin='mysql_native_password' --optimizer-switch='derived_merge=off' --sql-mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
environment:
MYSQL_HOST: 127.0.0.1
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_ROOT_HOST: '%'
steps: steps:
- checkout - checkout
- run: service mysqld restart - run:
- run: yum -y install php71-imap name: Install dockerize
command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
environment:
DOCKERIZE_VERSION: v0.6.1
- run:
name: Wait for DB
command: dockerize -wait tcp://127.0.0.1:3306 -timeout 3m
- run: mysql -u root -ppassword -e "create database test;" - run: mysql -u root -ppassword -e "create database test;"
- run: mysql -u root -ppassword -e "create database testexternal;" - run: mysql -u root -ppassword -e "create database testexternal;"
- run: composer install - run: composer install