Skip to content

Commit

Permalink
Fix Taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Dec 18, 2023
1 parent 6e11ea6 commit 9b5d4cf
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Taskfile.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ vars:
CMAKE_PRESET: 'mamba-unix-shared-debug-dev'
CACHE_DIR: '{{.BUILD_DIR}}/pkgs'
DOCS_DIR: '{{.BUILD_DIR}}/docs'
MAMBA_NAME: 'mamba' # Depend on preset...
TEST_MAMBA_EXE:
sh: 'realpath {{.CMAKE_BUILD_DIR}}/micromamba/{{.MAMBA_NAME}}'
CPU_PERCENTAGE: 75
CPU_TOTAL:
sh: >-
Expand Down Expand Up @@ -147,9 +150,9 @@ tasks:
An example run could look like:
task micromamba -- create -n env -c conda-forge python=3.11
deps: [{task: '_build', vars: {target: 'micromamba'}}]
deps: [{task: '_build', vars: {target: '{{.MAMBA_NAME}}'}}]
cmds:
- '"{{.CMAKE_BUILD_DIR}}/micromamba/micromamba" {{.CLI_ARGS}}'
- '"{{.TEST_MAMBA_EXE}}" {{.CLI_ARGS}}'

_test-libmamba:
internal: true
Expand All @@ -169,10 +172,9 @@ tasks:

_test-micromamba:
internal: true
deps: [{task: '_build', vars: {target: 'micromamba'}}]
deps: [{task: '_build', vars: {target: '{{.MAMBA_NAME}}'}}]
env:
TEST_MAMBA_EXE:
sh: 'realpath {{.CMAKE_BUILD_DIR}}/micromamba/micromamba'
TEST_MAMBA_EXE: '{{.TEST_MAMBA_EXE}}'
cmds:
- >-
{{.DEV_RUN}} python -m pytest micromamba/tests/
Expand All @@ -197,10 +199,9 @@ tasks:

_test-reposerver:
internal: true
deps: [{task: '_build', vars: {target: 'micromamba'}}]
deps: [{task: '_build', vars: {target: '{{.MAMBA_NAME'}}]
env:
TEST_MAMBA_EXE:
sh: 'realpath {{.CMAKE_BUILD_DIR}}/micromamba/micromamba'
TEST_MAMBA_EXE: '{{.TEST_MAMBA_EXE}}'
# Explicitly using this as var since env does not override shell environment
vars:
GNUPGHOME: '{{.BUILD_DIR}}/gnupg'
Expand Down

0 comments on commit 9b5d4cf

Please sign in to comment.