[v8.3.x] chore(drone): switch to using cypress built image for e2e tests (#44050)
* chore(drone): switch to using cypress built image for e2e tests
(cherry picked from commit ec9d6b9ca9)
* Remove volumes - downgrade cypress version
Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com>
This commit is contained in:
co-authored by
Timur Olzhabayev
parent
3aab445245
commit
3878ff9324
@@ -667,40 +667,21 @@ def e2e_tests_server_step(edition, port=3001):
|
||||
],
|
||||
}
|
||||
|
||||
def install_cypress_step():
|
||||
return {
|
||||
'name': 'cypress',
|
||||
'image': 'grafana/ci-e2e:12.19.0-1',
|
||||
'depends_on': [
|
||||
'package',
|
||||
],
|
||||
'commands': [
|
||||
'yarn run cypress install',
|
||||
],
|
||||
'volumes': [{
|
||||
'name': 'cypress_cache',
|
||||
'path': '/root/.cache/Cypress'
|
||||
}],
|
||||
}
|
||||
|
||||
def e2e_tests_step(suite, edition, port=3001, tries=None):
|
||||
cmd = './bin/grabpl e2e-tests --port {} --suite {}'.format(port, suite)
|
||||
if tries:
|
||||
cmd += ' --tries {}'.format(tries)
|
||||
return {
|
||||
'name': 'end-to-end-tests-{}'.format(suite) + enterprise2_suffix(edition),
|
||||
'image': 'grafana/ci-e2e:12.19.0-1',
|
||||
'image': 'cypress/included:8.4.1',
|
||||
'depends_on': [
|
||||
'cypress',
|
||||
'package',
|
||||
],
|
||||
'environment': {
|
||||
'HOST': 'end-to-end-tests-server' + enterprise2_suffix(edition),
|
||||
},
|
||||
'volumes': [{
|
||||
'name': 'cypress_cache',
|
||||
'path': '/root/.cache/Cypress'
|
||||
}],
|
||||
'commands': [
|
||||
'apt-get install -y netcat',
|
||||
cmd,
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user