From 0c744055a3b8bc9f103f688d7f179968d7e7a636 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Sun, 14 Jul 2019 09:15:44 +0000 Subject: [PATCH 01/14] Fixing style errors. --- tests/TestCase.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 96cede48..b507f4d6 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -43,6 +43,5 @@ protected function getEnvironmentSetUp($app) echo shell_exec('mysql -h ' . $host . ' -u ' . $username . ' -p' . $password . ' -e "CREATE DATABASE IF NOT EXISTS ' . $database . '"'); $app['config']->set('database.connections.mysql.database', $database); - } } From adf6a1a60d3e1857fb90ec835308a88656e4a4a6 Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 13:53:44 +0430 Subject: [PATCH 02/14] Fix travis ci --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 08eb1433..c2d38bc6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,9 +42,9 @@ matrix: env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest' before_script: - - sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('root') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" - - sudo mysql_upgrade -u root -proot - - sudo service mysql restart + - mysql -u root -e 'CREATE DATABASE eloquentFilter_test;' + - mysql -u root -e "CREATE USER 'root'@'localhost' IDENTIFIED BY 'root';" + - mysql -u root -e "GRANT ALL ON eloquentFilter_test.* TO 'root'@'localhost';" - travis_retry composer self-update --stable -n - travis_retry composer require --no-update --no-interaction "illuminate/support:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" From 1721f51181ffa2871d32ad67cc5b6e7479bd740d Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 14:00:41 +0430 Subject: [PATCH 03/14] Fix travis ci --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index c2d38bc6..3edceb83 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,15 @@ os: linux sudo: required language: php +services: + - mysql +dist: trusty +addons: + apt: + packages: + - mysql-server-5.6 + - mysql-client-core-5.6 + - mysql-client-5.6 cache: directories: - $HOME/.composer/cache From 59ae5a13bbebe3346cccadbcfa3f1ad60d216e29 Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 14:10:22 +0430 Subject: [PATCH 04/14] Fix travis ci --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3edceb83..efc8e505 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,8 +52,8 @@ matrix: before_script: - mysql -u root -e 'CREATE DATABASE eloquentFilter_test;' - - mysql -u root -e "CREATE USER 'root'@'localhost' IDENTIFIED BY 'root';" - - mysql -u root -e "GRANT ALL ON eloquentFilter_test.* TO 'root'@'localhost';" + - mysql -u root -e "CREATE USER 'eloquentFilter_test'@'localhost' IDENTIFIED BY 'eloquentFilter_test';" + - mysql -u root -e "GRANT ALL ON eloquentFilter_test.* TO 'eloquentFilter_test'@'localhost';" - travis_retry composer self-update --stable -n - travis_retry composer require --no-update --no-interaction "illuminate/support:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" From 2e8e68d794f4d7b28330e4b92829c15f17192d31 Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 14:24:01 +0430 Subject: [PATCH 05/14] Fix travis ci --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index efc8e505..368ed271 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,12 +16,14 @@ cache: - $HOME/.composer/cache - ${TRAVIS_BUILD_DIR}/travis/extension-cache - vendor - +env: + - DB=mysql + - DB=pgsql matrix: fast_finish: true include: - php: 7.1 - env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest' + env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest' DB=pgsql - php: 7.1 env: LARAVEL='5.5.*' TESTBENCH='3.5.*' - php: 7.1 @@ -51,9 +53,7 @@ matrix: env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest' before_script: - - mysql -u root -e 'CREATE DATABASE eloquentFilter_test;' - - mysql -u root -e "CREATE USER 'eloquentFilter_test'@'localhost' IDENTIFIED BY 'eloquentFilter_test';" - - mysql -u root -e "GRANT ALL ON eloquentFilter_test.* TO 'eloquentFilter_test'@'localhost';" + - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS eloquentFilter_test;" -uroot; fi - travis_retry composer self-update --stable -n - travis_retry composer require --no-update --no-interaction "illuminate/support:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" From 078e36ad3a1808850c99691d39ce5c81082b3dca Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 14:37:41 +0430 Subject: [PATCH 06/14] Fix travis ci --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 368ed271..f0cba1e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,7 +55,6 @@ matrix: before_script: - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS eloquentFilter_test;" -uroot; fi - travis_retry composer self-update --stable -n - - travis_retry composer require --no-update --no-interaction "illuminate/support:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" install: - travis_retry composer update --no-interaction --no-plugins --no-suggest --prefer-source ${COMPOSER_FLAGS} From e6e2e59cf9ea2af778b906e7dd07a56585d8b354 Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 15:37:55 +0430 Subject: [PATCH 07/14] Fix travis ci --- .travis.yml | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/.travis.yml b/.travis.yml index f0cba1e3..0fa41b1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,38 +18,13 @@ cache: - vendor env: - DB=mysql - - DB=pgsql matrix: fast_finish: true include: - - php: 7.1 - env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest' DB=pgsql - - php: 7.1 - env: LARAVEL='5.5.*' TESTBENCH='3.5.*' - - php: 7.1 - env: LARAVEL='5.6.*' TESTBENCH='3.6.*' - - php: 7.1 - env: LARAVEL='5.7.*' TESTBENCH='3.7.*' - - php: 7.1 - env: LARAVEL='5.8.*' TESTBENCH='3.8.*' - php: 7.2 - env: LARAVEL='5.5.*' TESTBENCH='3.5.*' - - php: 7.2 - env: LARAVEL='5.6.*' TESTBENCH='3.6.*' - - php: 7.2 - env: LARAVEL='5.7.*' TESTBENCH='3.7.*' - - php: 7.2 - env: LARAVEL='5.8.*' TESTBENCH='3.8.*' - - php: 7.3 - env: LARAVEL='5.5.*' TESTBENCH='3.5.*' - - php: 7.3 - env: LARAVEL='5.6.*' TESTBENCH='3.6.*' - - php: 7.3 - env: LARAVEL='5.7.*' TESTBENCH='3.7.*' - - php: 7.3 - env: LARAVEL='5.8.*' TESTBENCH='3.8.*' + env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest' DB=mysql allow_failures: - - php: 7.1 + - php: 7.2 env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest' before_script: From 0dd1db179ad65932069daa7755c3e0fd955d1f4c Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 15:45:25 +0430 Subject: [PATCH 08/14] Fix travis ci --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0fa41b1f..b91352e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ matrix: env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest' before_script: - - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS eloquentFilter_test;" -uroot; fi + - mysql -u root -e 'CREATE USER IF NOT EXISTS root@localhost; GRANT ALL ON *.* TO root@localhost;' - travis_retry composer self-update --stable -n install: From 3e146f6c52100eb79b413adc78dd3d48b63bcb1f Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 15:52:12 +0430 Subject: [PATCH 09/14] Fix travis ci --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b91352e2..0fa41b1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ matrix: env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest' before_script: - - mysql -u root -e 'CREATE USER IF NOT EXISTS root@localhost; GRANT ALL ON *.* TO root@localhost;' + - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS eloquentFilter_test;" -uroot; fi - travis_retry composer self-update --stable -n install: From 8d9f2b3c65501c4c9ee67b432d4ca8509cd77768 Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 16:00:59 +0430 Subject: [PATCH 10/14] Fix travis ci --- .travis.yml | 54 ++++++++++++++++++++++++----------------------------- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0fa41b1f..06c9a707 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,41 +1,35 @@ -# .travis.yml -os: linux -sudo: required +dist: xenial language: php -services: - - mysql -dist: trusty -addons: - apt: - packages: - - mysql-server-5.6 - - mysql-client-core-5.6 - - mysql-client-5.6 -cache: - directories: - - $HOME/.composer/cache - - ${TRAVIS_BUILD_DIR}/travis/extension-cache - - vendor + env: - - DB=mysql + global: + - SETUP=stable + matrix: fast_finish: true include: - php: 7.2 - env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest' DB=mysql - allow_failures: - php: 7.2 - env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest' + env: SETUP=lowest + - php: 7.3 + - php: 7.3 + env: SETUP=lowest -before_script: - - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS eloquentFilter_test;" -uroot; fi - - travis_retry composer self-update --stable -n +cache: + directories: + - $HOME/.composer/cache -install: - - travis_retry composer update --no-interaction --no-plugins --no-suggest --prefer-source ${COMPOSER_FLAGS} +services: + - memcached + - redis-server + - mysql + +before_install: + - travis_retry composer self-update + - mysql -e 'CREATE DATABASE eloquentFilter_test;' -script: - - vendor/bin/phpunit +install: + - if [[ $SETUP = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi + - if [[ $SETUP = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi -notifications: - email: false +script: vendor/bin/phpunit From c7d2110a4ce377b9474dc681bf9984d5e22dafba Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 16:25:02 +0430 Subject: [PATCH 11/14] Fix travis ci --- .travis.yml | 43 ++++++++++++++++--------------------------- 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/.travis.yml b/.travis.yml index 06c9a707..0fa5a1ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,35 +1,24 @@ -dist: xenial language: php -env: - global: - - SETUP=stable - -matrix: - fast_finish: true - include: - - php: 7.2 - - php: 7.2 - env: SETUP=lowest - - php: 7.3 - - php: 7.3 - env: SETUP=lowest - -cache: - directories: - - $HOME/.composer/cache +php: + - 7.0 + - 7.1 services: - - memcached - - redis-server - mysql -before_install: - - travis_retry composer self-update - - mysql -e 'CREATE DATABASE eloquentFilter_test;' +before_script: + - cp .env.travis .env + - mysql -e 'create database eloquentFilter_test;' + - composer self-update + - composer install --no-interaction -install: - - if [[ $SETUP = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi - - if [[ $SETUP = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi +script: + - vendor/bin/phpunit -script: vendor/bin/phpunit +notifications: +email: + recipients: + - mehdifathi.developer@gmail.com + on_success: always + on_failure: always From b1a14bc212d94fb0d50d352e6a2b417b5297ea91 Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 16:26:51 +0430 Subject: [PATCH 12/14] Fix travis ci --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0fa5a1ac..16dc1c83 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,6 @@ services: - mysql before_script: - - cp .env.travis .env - mysql -e 'create database eloquentFilter_test;' - composer self-update - composer install --no-interaction From 6d6e3e9f8e182981250b202ec8c9a36a1ba3a50f Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 16:43:22 +0430 Subject: [PATCH 13/14] Fix travis ci --- .travis.yml | 43 ++++++++++++++++++++----------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index 16dc1c83..9a54ee2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,20 @@ -language: php - -php: - - 7.0 - - 7.1 - -services: - - mysql - -before_script: - - mysql -e 'create database eloquentFilter_test;' - - composer self-update - - composer install --no-interaction - -script: - - vendor/bin/phpunit - -notifications: -email: - recipients: - - mehdifathi.developer@gmail.com - on_success: always - on_failure: always + language: php + php: + - 7.2 + services: + - mysql + env: + global: + - APP_ENV: production + - DB_USERNAME: root + - DB_DATABASE: eloquentFilter_test + - DB_PASSWORD: root + before_install: + - mysql -e 'create database test' + install: + - travis_retry composer install --no-interaction --prefer-dist --no-suggest + - nvm install 5.10.1 + before_script: + - composer install --no-interaction + - gulp build + script: vendor/bin/phpunit From 928173aeb90640a19df6df49a574ac895a53f611 Mon Sep 17 00:00:00 2001 From: Mehdi Fathi Date: Sun, 14 Jul 2019 16:46:03 +0430 Subject: [PATCH 14/14] Fix travis ci --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9a54ee2f..53c756e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,5 +16,4 @@ - nvm install 5.10.1 before_script: - composer install --no-interaction - - gulp build script: vendor/bin/phpunit