Skip to content

Commit

Permalink
Merge pull request #283 from owncloud/test-with-mysql-8.0
Browse files Browse the repository at this point in the history
[tests-only] Test with mysql 8.0
  • Loading branch information
phil-davis authored Feb 16, 2021
2 parents 2090d2a + ced52ad commit e112f23
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ config = {
'7.4',
],
'databases': [
'mysql:5.5',
'mysql:8.0',
],
'coverage': False
},
Expand Down Expand Up @@ -196,7 +196,7 @@ def jscodestyle():
'steps': [
{
'name': 'coding-standard-js',
'image': 'owncloudci/php:7.2',
'image': 'owncloudci/php:8.0',
'pull': 'always',
'commands': [
'make test-js-style'
Expand Down Expand Up @@ -501,13 +501,13 @@ def javascript(ctx):
},
'steps':
installCore('daily-master-qa', 'sqlite', False) +
installApp('7.2') +
setupServerAndApp('7.2', params['logLevel']) +
installApp('7.4') +
setupServerAndApp('7.4', params['logLevel']) +
params['extraSetup'] +
[
{
'name': 'js-tests',
'image': 'owncloudci/php:7.2',
'image': 'owncloudci/php:8.0',
'pull': 'always',
'environment': params['extraEnvironment'],
'commands': params['extraCommandsBeforeTestRun'] + [
Expand Down Expand Up @@ -1591,7 +1591,7 @@ def databaseServiceForFederation(db, suffix):
print('Not implemented federated database for ', dbName)
return []

return [{
service = {
'name': dbName + suffix,
'image': db,
'pull': 'always',
Expand All @@ -1601,7 +1601,10 @@ def databaseServiceForFederation(db, suffix):
'MYSQL_DATABASE': getDbDatabase(db) + suffix,
'MYSQL_ROOT_PASSWORD': getDbRootPassword()
}
}]
}
if (db == 'mysql:8.0'):
service['command'] = ['--default-authentication-plugin=mysql_native_password']
return [service]

def buildTestConfig(params):
configs = []
Expand Down

0 comments on commit e112f23

Please sign in to comment.