From 5ba83657494ccec0cdffe62eb9f545f6e6b2318c Mon Sep 17 00:00:00 2001 From: Alvaro Flores Date: Wed, 18 May 2022 21:25:21 +0000 Subject: [PATCH 1/7] docker with php74 and mysql 8 was added --- .circleci/config.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1e8722d11..4aba0efee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,11 +3,24 @@ jobs: build: working_directory: ~/processmaker 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: - checkout - - run: service mysqld restart - - run: yum -y install php71-imap + - run: + 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 testexternal;" - run: composer install From b7a9da2fe7c2b9756bd908e3102ae6671ad17d83 Mon Sep 17 00:00:00 2001 From: Alvaro Flores Date: Wed, 18 May 2022 23:19:29 +0000 Subject: [PATCH 2/7] docker with php74 and mysql 8 was added --- .circleci/config.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4aba0efee..0b6f11c11 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,35 +1,35 @@ version: 2 jobs: - build: - working_directory: ~/processmaker - docker: - - image: devopsstacks/pm:n275-phpunit - - image: circleci/mysql:8.0.13-ram + build: + working_directory: ~/processmaker + docker: + - 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: - - checkout - - run: + steps: + - checkout + - run: 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: + - 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 testexternal;" - - run: composer install - - run: - name: Run Test Units - command: | - mkdir coverage - vendor/phpunit/phpunit/phpunit --testdox-html coverage/result.html --coverage-html coverage --verbose tests/unit/ - - store_artifacts: + - run: mysql -u root -ppassword -e "create database test;" + - run: mysql -u root -ppassword -e "create database testexternal;" + - run: composer install + - run: + name: Run Test Units + command: | + mkdir coverage + vendor/phpunit/phpunit/phpunit --testdox-html coverage/result.html --coverage-html coverage --verbose tests/unit/ + - store_artifacts: path: coverage destination: coverage \ No newline at end of file From 455c548aa3342f7c7085bc1321e5e4e2571367de Mon Sep 17 00:00:00 2001 From: Alvaro Flores Date: Wed, 18 May 2022 23:34:05 +0000 Subject: [PATCH 3/7] docker with php74 and mysql 8 was added --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0b6f11c11..4c28686e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,8 +21,8 @@ jobs: - 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 testexternal;" + - run: mysql -u root -ppassword -h 127.0.0.1 -e "create database test;" + - run: mysql -u root -ppassword -h 127.0.0.1 -e "create database testexternal;" - run: composer install - run: name: Run Test Units From 160f05c1175701828dba1abfc18573467f04f96e Mon Sep 17 00:00:00 2001 From: Alvaro Flores Date: Thu, 19 May 2022 00:51:28 +0000 Subject: [PATCH 4/7] docker with php74 and mysql 8 was added --- .circleci/config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4c28686e0..0dc15544d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,5 +31,4 @@ jobs: vendor/phpunit/phpunit/phpunit --testdox-html coverage/result.html --coverage-html coverage --verbose tests/unit/ - store_artifacts: path: coverage - destination: coverage - \ No newline at end of file + destination: coverage \ No newline at end of file From b898c945eb6b0c89f9bed5cf487d88cdfec9e89e Mon Sep 17 00:00:00 2001 From: Alvaro Flores Date: Thu, 19 May 2022 01:13:56 +0000 Subject: [PATCH 5/7] docker with php74 and mysql 8 was added --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0dc15544d..a172e14c2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,4 +31,5 @@ jobs: vendor/phpunit/phpunit/phpunit --testdox-html coverage/result.html --coverage-html coverage --verbose tests/unit/ - store_artifacts: path: coverage - destination: coverage \ No newline at end of file + destination: coverage + \ No newline at end of file From 9a890499e79f8d23e4225f4f4c07c263ed3e2b56 Mon Sep 17 00:00:00 2001 From: Alvaro Flores Date: Thu, 19 May 2022 13:04:52 +0000 Subject: [PATCH 6/7] docker with php74 and mysql 8 was added --- .circleci/config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a172e14c2..0dc15544d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,5 +31,4 @@ jobs: vendor/phpunit/phpunit/phpunit --testdox-html coverage/result.html --coverage-html coverage --verbose tests/unit/ - store_artifacts: path: coverage - destination: coverage - \ No newline at end of file + destination: coverage \ No newline at end of file From 9aaf7dbb89fa7badb5ee2f57f532a3ea0d0c6d47 Mon Sep 17 00:00:00 2001 From: Alvaro Flores Date: Thu, 19 May 2022 14:44:34 +0000 Subject: [PATCH 7/7] docker with php74 and mysql 8 was added --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0dc15544d..a172e14c2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,4 +31,5 @@ jobs: vendor/phpunit/phpunit/phpunit --testdox-html coverage/result.html --coverage-html coverage --verbose tests/unit/ - store_artifacts: path: coverage - destination: coverage \ No newline at end of file + destination: coverage + \ No newline at end of file