Skip to content

Commit

Permalink
azure-pipelines.yml: test important packages
Browse files Browse the repository at this point in the history
  • Loading branch information
alaviss committed Feb 6, 2020
1 parent 9391fbc commit 2af79eb
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
vmImage: 'ubuntu-latest'

variables:
- CHOOSENIM_NO_ANALYTICS: 1
- CHOOSENIM_CHOOSE_VERSION: '#16c39f9b2edc963655889cfd33e165bfae91c96d'
# bump everytime choosenim has to be updated
- CHOOSENIM_REVISION: 1

steps:
- task: Cache@2
inputs:
key: 'toolchain' | $(CHOOSENIM_CHOOSE_VERSION) | $(CHOOSENIM_REVISION) | $(Agent.OS)
path: $(HOME)/.choosenim
cacheHitVar: CHOOSENIM_CACHED
displayName: 'Restore choosenim toolchains'

- task: Cache@2
inputs:
key: 'choosenim' | $(CHOOSENIM_CHOOSE_VERSION) | $(CHOOSENIM_REVISION) | $(Agent.OS)
path: $(HOME)/.nimble/bin
cacheHitVar: CHOOSENIM_CACHED
displayName: 'Restore choosenim'

- bash: echo '##vso[task.prependpath]$HOME/.nimble/bin'
displayName: 'Setup environment'

- bash: |
curl https://nim-lang.org/choosenim/init.sh -sSfo init.sh
sh init.sh -y
displayName: 'Install Nim with choosenim'
condition: eq('CHOOSENIM_CACHED', false)
- bash: testament cat nimble-packages
displayName: 'Test important packages'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)

0 comments on commit 2af79eb

Please sign in to comment.