Skip to content

Commit

Permalink
feat: separated sources setup and patching
Browse files Browse the repository at this point in the history
#181

Summary of changes:
- Separate sources setup and patching for cleaner workflow.
  • Loading branch information
Ivan Chvets committed Feb 6, 2023
1 parent f381f8d commit c20a311
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ max-line-length = 100

[tox]
skipsdist = True
envlist = {controller,ui}-{unit,lint,integration},integration,images-{setup,build,scan,publish}
envlist = {controller,ui}-{unit,lint,integration},integration,images-{setup,patch,build,scan,publish}

[vars]
all_path = {[vars]src_path} {[vars]tst_path}
Expand Down Expand Up @@ -80,11 +80,19 @@ commands =
# in image-definitions/ install tools and setup sources
# install tools and setup sources
bash -c 'cd ./image-definitions && ./install-tools.sh && ./setup.sh .'
description = Install tools, setup upstream sources

[testenv:images-patch]
whitelist_externals = bash
passenv =
HOME
USER
commands =
# check if ./kubeflow was updated since last commit
bash -c 'cd ./image-definitions && ./check.sh'
# apply patch for kubeflow/
bash -c 'cd ./image-definitions && cd ./kubeflow && git apply ../kubeflow.patch'
description = Install tools, setup sources, and apply patches
description = Check for updates in sources and warn about commit difference, apply patch

[testenv:images-build]
whitelist_externals = bash
Expand Down

0 comments on commit c20a311

Please sign in to comment.