Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mehdi fathi working 2 #21

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
77 changes: 19 additions & 58 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,19 @@
# .travis.yml
os: linux
sudo: required
language: php
cache:
directories:
- $HOME/.composer/cache
- ${TRAVIS_BUILD_DIR}/travis/extension-cache
- vendor

matrix:
fast_finish: true
include:
- php: 7.1
env: LARAVEL='5.5.*' TESTBENCH='3.5.*' COMPOSER_FLAGS='--prefer-lowest'
- 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.*'
allow_failures:
- php: 7.1
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
- 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}

script:
- vendor/bin/phpunit

notifications:
email: false
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
script: vendor/bin/phpunit
1 change: 0 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}
}