Skip to content

Commit

Permalink
are bash/powershell split still necessary?
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Feb 4, 2020
1 parent 60b32e2 commit 907c3bb
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,32 +143,14 @@ steps:
fi
popd # exit nim-CHANNEL
popd # exit NimBinaries
echo "##vso[task.prependpath]$PWD/NimBinaries/nim-${CHANNEL}/bin"
displayName: 'Building Nim'
# Nimble uses findExe which is broken under bash windows
# We need to set PATH in the collector for the next tast
# and also update it within this task with export
- bash: |
echo "##vso[task.prependpath]$PWD/NimBinaries/nim-${CHANNEL}/bin"
displayName: 'Set env variable (Posix)'
condition: ne(variables['Agent.OS'], 'Windows_NT')
- bash: |
echo "PATH=${PATH}"
nimble refresh
nimble install cligen synthesis
displayName: 'Building the package dependencies (Posix)'
condition: ne(variables['Agent.OS'], 'Windows_NT')
- powershell: |
echo "##vso[task.prependpath]$pwd\NimBinaries\nim-$(CHANNEL)\bin"
displayName: 'Set env variable (Windows)'
condition: eq(variables['Agent.OS'], 'Windows_NT')
- powershell: |
echo $Env:Path
nimble refresh
nimble install cligen synthesis
displayName: 'Building the package dependencies (Windows)'
condition: eq(variables['Agent.OS'], 'Windows_NT')
displayName: 'Building the package dependencies'
- bash: |
echo "PATH=${PATH}"
Expand Down

0 comments on commit 907c3bb

Please sign in to comment.