Skip to content

Commit

Permalink
add dc_resource definitions and dependencies to Tiltfile (#1989)
Browse files Browse the repository at this point in the history
  • Loading branch information
AleF83 authored Oct 29, 2022
1 parent 1e619cb commit 10ae268
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,19 @@ docker_build("soluto/tweek-editor", "services/editor",dockerfile="services/edito
fall_back_on(['services/editor/package.json']),
sync('services/editor/src', '/app/src'),
]
)
)

dc_resource('minio')
dc_resource('redis')
dc_resource('git')
dc_resource('nats')
dc_resource('oidc-server-mock')

dc_resource('api', resource_deps=['minio', 'nats'])
dc_resource('publishing', resource_deps=['git', 'minio', 'nats'])
dc_resource('authoring', resource_deps=['publishing'])
dc_resource('gateway', resource_deps=['minio', 'nats', 'oidc-server-mock', 'api', 'authoring'])
dc_resource('editor', resource_deps=['gateway'])
if os.getenv('RUN_TESTS', 'false') == 'true':
local_resource('integration-tests', cmd='yarn test', dir='e2e/integration', resource_deps=['gateway'])
local_resource('ui-tests', cmd='yarn test', dir='e2e/ui', resource_deps=['integration-tests'])

0 comments on commit 10ae268

Please sign in to comment.