From ab9a88602910a436b65f98bf2fbac5c43d44f467 Mon Sep 17 00:00:00 2001 From: Moctar Date: Mon, 4 Oct 2021 16:25:47 +0100 Subject: [PATCH] fix missing mysql server on image --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1be1d6d32e..c3303111b9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS - run: working_directory: ~/alchemy-fr/Phraseanet - command: 'sudo service mysql status || sudo service mysql start;' + command: 'sudo apt-get install mysql-server && sudo service mysql status || sudo service mysql start;' # Dependencies # This would typically go in either a build or a build-and-test job when using workflows # Restore the dependency cache @@ -82,10 +82,10 @@ jobs: - node_modules - ~/.composer # This is based on your 1.0 configuration file or project settings - - run: mysql -u ubuntu -e 'CREATE DATABASE update39_test;CREATE DATABASE ab_test;CREATE DATABASE db_test;SET @@global.sql_mode=STRICT_ALL_TABLES;SET @@global.max_allowed_packet=33554432;SET @@global.wait_timeout=999999;'; + - run: mysql -u root -e 'CREATE DATABASE update39_test;CREATE DATABASE ab_test;CREATE DATABASE db_test;SET @@global.sql_mode=STRICT_ALL_TABLES;SET @@global.max_allowed_packet=33554432;SET @@global.wait_timeout=999999;'; # This is based on your 1.0 configuration file or project settings - run: ./bin/developer system:uninstall -v - - run: ./bin/setup system:install -v --email=test@phraseanet.com --password=test --db-host=127.0.0.1 --db-user=ubuntu --db-template=fr-simple --db-password= --databox=db_test --appbox=ab_test --server-name=http://127.0.0.1 -y; + - run: ./bin/setup system:install -v --email=test@phraseanet.com --password=test --db-host=127.0.0.1 --db-user=root --db-template=fr-simple --db-password= --databox=db_test --appbox=ab_test --server-name=http://127.0.0.1 -y; - run: ./bin/developer ini:setup-tests-dbs -v - run: ./bin/console searchengine:index:create -v - run: ./bin/developer phraseanet:regenerate-sqlite -v