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

[Tests-Only] Run acceptance tests with php7.4 #190

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 50 additions & 126 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ config = {
]
}
],
'extraApps': {
'notifications': ''
},
'phpVersions': [
'7.4',
],
},
'webUI-masterkey': {
'suites': {
Expand All @@ -96,6 +102,12 @@ config = {
]
}
],
'extraApps': {
'notifications': ''
},
'phpVersions': [
'7.4',
],
},
'webUI-userkeys': {
'suites': {
Expand All @@ -122,6 +134,12 @@ config = {
]
}
],
'extraApps': {
'notifications': ''
},
'phpVersions': [
'7.4',
],
},
'api-core-masterkey': {
'suites': [
Expand Down Expand Up @@ -154,38 +172,11 @@ config = {
]
}
],
},
'api-core-latest-masterkey': {
'suites': [
'apiCoreMKey',
],
'databases': [
'mysql:5.7',
],
'servers': [
'latest',
],
'runCoreTests': True,
'runAllSuites': True,
'numberOfParts': 28,
'emailNeeded': True,
'federatedServerNeeded': True,
'cron': 'nightly',
'extraEnvironment': {
'ENCRYPTION_TYPE': 'masterkey',
'extraApps': {
'notifications': ''
},
'extraSetup': [
{
'name': 'configure-app',
'image': 'owncloudci/php:7.2',
'pull': 'always',
'commands': [
'cd /var/www/owncloud/server',
'php occ encryption:enable',
'php occ encryption:select-encryption-type masterkey --yes',
'php occ config:list',
]
}
'phpVersions': [
'7.4',
],
},
'api-core-userkeys': {
Expand Down Expand Up @@ -219,38 +210,11 @@ config = {
]
}
],
},
'api-core-latest-userkeys': {
'suites': [
'apiCoreUKey',
],
'databases': [
'mysql:5.7',
],
'servers': [
'latest',
],
'runCoreTests': True,
'runAllSuites': True,
'numberOfParts': 28,
'emailNeeded': True,
'federatedServerNeeded': True,
'cron': 'nightly',
'extraEnvironment': {
'ENCRYPTION_TYPE': 'user-keys',
'extraApps': {
'notifications': ''
},
'extraSetup': [
{
'name': 'configure-app',
'image': 'owncloudci/php:7.2',
'pull': 'always',
'commands': [
'cd /var/www/owncloud/server',
'php occ encryption:enable',
'php occ encryption:select-encryption-type user-keys --yes',
'php occ config:list',
]
}
'phpVersions': [
'7.4',
],
},
'cli-core-masterkey': {
Expand Down Expand Up @@ -283,6 +247,12 @@ config = {
]
}
],
'extraApps': {
'notifications': ''
},
'phpVersions': [
'7.4',
],
},
'cli-core-userkeys': {
'suites': [
Expand Down Expand Up @@ -314,6 +284,12 @@ config = {
]
}
],
'extraApps': {
'notifications': ''
},
'phpVersions': [
'7.4',
],
},
'webUI-core-masterkey': {
'suites': [
Expand Down Expand Up @@ -346,38 +322,11 @@ config = {
]
}
],
},
'webUI-core-latest-masterkey': {
'suites': [
'webUIcoreMKey',
],
'databases': [
'mysql:5.7',
],
'servers': [
'latest',
],
'runCoreTests': True,
'runAllSuites': True,
'numberOfParts': 27,
'emailNeeded': True,
'federatedServerNeeded': True,
'cron': 'nightly',
'extraEnvironment': {
'ENCRYPTION_TYPE': 'masterkey',
'extraApps': {
'notifications': ''
},
'extraSetup': [
{
'name': 'configure-app',
'image': 'owncloudci/php:7.2',
'pull': 'always',
'commands': [
'cd /var/www/owncloud/server',
'php occ encryption:enable',
'php occ encryption:select-encryption-type masterkey --yes',
'php occ config:list',
]
}
'phpVersions': [
'7.4',
],
},
'webUI-core-userkeys': {
Expand Down Expand Up @@ -411,38 +360,11 @@ config = {
]
}
],
},
'webUI-core-latest-userkeys': {
'suites': [
'webUIcoreUKey',
],
'databases': [
'mysql:5.7',
],
'servers': [
'latest',
],
'runCoreTests': True,
'runAllSuites': True,
'numberOfParts': 27,
'emailNeeded': True,
'federatedServerNeeded': True,
'cron': 'nightly',
'extraEnvironment': {
'ENCRYPTION_TYPE': 'user-keys',
'extraApps': {
'notifications': ''
},
'extraSetup': [
{
'name': 'configure-app',
'image': 'owncloudci/php:7.2',
'pull': 'always',
'commands': [
'cd /var/www/owncloud/server',
'php occ encryption:enable',
'php occ encryption:select-encryption-type user-keys --yes',
'php occ config:list',
]
}
'phpVersions': [
'7.4',
],
},
}
Expand Down Expand Up @@ -1568,7 +1490,7 @@ def installCore(version, db, useBundledApp):
'image': 'owncloudci/core',
'pull': 'always',
'settings': {
'version': version,
'git_reference': 'php7.4-20200310',
'core_path': '/var/www/owncloud/server',
'db_type': dbType,
'db_name': database,
Expand Down Expand Up @@ -1755,7 +1677,7 @@ def installFederated(federatedServerVersion, phpVersion, logLevel, db, dbSuffix
'image': 'owncloudci/core',
'pull': 'always',
'settings': {
'version': federatedServerVersion,
'git_reference': 'php7.4-20200310',
'core_path': '/var/www/owncloud/federated',
'db_type': 'mysql',
'db_name': database,
Expand All @@ -1772,6 +1694,8 @@ def installFederated(federatedServerVersion, phpVersion, logLevel, db, dbSuffix
'echo "export TEST_SERVER_FED_URL=http://federated" > /var/www/owncloud/saved-settings.sh',
'cd /var/www/owncloud/federated',
'php occ a:l',
'git clone https://github.com/owncloud/user_ldap.git /var/www/owncloud/federated/apps/user_ldap',
'php occ a:e user_ldap',
'php occ a:e testing',
'php occ a:l',
'php occ config:system:set trusted_domains 1 --value=federated',
Expand Down