Skip to content

Commit

Permalink
revert some changes to template
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro committed Jun 17, 2021
1 parent da458a9 commit edf8058
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions azure-pipelines/templates/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ parameters:

- name: skipInstall
type: boolean
default: true
default: false

steps:
- bash: echo "##vso[task.setvariable variable=shellopts]errexit"
Expand All @@ -45,17 +45,17 @@ steps:
echo "##vso[task.setvariable variable=package.manager]mamba"
displayName: 'Set package manager'
- ${{ if eq(parameters.skipinstall, true) }}:
- checkout: self
path: s/tardis
fetchDepth: ${{ parameters.fetchDepth }}
- checkout: self
path: s/tardis
fetchDepth: ${{ parameters.fetchDepth }}

- ${{ if and(eq(parameters.fetchRefdata, true), eq(parameters.refdataRepo, 'azure')) }}:
- ${{ if eq(parameters.fetchRefdata, true) }}:
- ${{ if eq(parameters.refdataRepo, 'azure') }}:
- checkout: git://TARDIS/tardis-refdata
lfs: true
displayName: 'Fetch reference data (Azure)'

- ${{ if and(eq(parameters.fetchRefdata, true), eq(parameters.refdataRepo, 'github')) }}:
- ${{ eq(parameters.refdataRepo, 'github') }}:
- bash: |
git clone https://github.com/tardis-sn/tardis-refdata.git $(refdata.dir)
cd $(refdata.dir); git lfs fetch
Expand All @@ -72,13 +72,13 @@ steps:
- bash: conda install mamba -c conda-forge -y
displayName: 'Install Mamba'

- ${{ if eq(parameters.skipinstall, true) }}:
- ${{ if eq(parameters.skipInstall, false) }}:
- bash: |
cd $(tardis.dir)
$(package.manager) env create -f tardis_env3.yml
displayName: 'Setup environment'
- ${{ if eq(parameters.skipinstall, true) }}:
- ${{ if eq(parameters.skipInstall, false) }}:
- bash: |
cd $(tardis.dir)
source activate tardis
Expand Down

0 comments on commit edf8058

Please sign in to comment.