Skip to content

Commit 2af79eb

Browse files
committed
azure-pipelines.yml: test important packages
1 parent 9391fbc commit 2af79eb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

azure-pipelines.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
vmImage: 'ubuntu-latest'
2+
3+
variables:
4+
- CHOOSENIM_NO_ANALYTICS: 1
5+
- CHOOSENIM_CHOOSE_VERSION: '#16c39f9b2edc963655889cfd33e165bfae91c96d'
6+
# bump everytime choosenim has to be updated
7+
- CHOOSENIM_REVISION: 1
8+
9+
steps:
10+
- task: Cache@2
11+
inputs:
12+
key: 'toolchain' | $(CHOOSENIM_CHOOSE_VERSION) | $(CHOOSENIM_REVISION) | $(Agent.OS)
13+
path: $(HOME)/.choosenim
14+
cacheHitVar: CHOOSENIM_CACHED
15+
displayName: 'Restore choosenim toolchains'
16+
17+
- task: Cache@2
18+
inputs:
19+
key: 'choosenim' | $(CHOOSENIM_CHOOSE_VERSION) | $(CHOOSENIM_REVISION) | $(Agent.OS)
20+
path: $(HOME)/.nimble/bin
21+
cacheHitVar: CHOOSENIM_CACHED
22+
displayName: 'Restore choosenim'
23+
24+
- bash: echo '##vso[task.prependpath]$HOME/.nimble/bin'
25+
displayName: 'Setup environment'
26+
27+
- bash: |
28+
curl https://nim-lang.org/choosenim/init.sh -sSfo init.sh
29+
sh init.sh -y
30+
displayName: 'Install Nim with choosenim'
31+
condition: eq('CHOOSENIM_CACHED', false)
32+
33+
- bash: testament cat nimble-packages
34+
displayName: 'Test important packages'
35+
env:
36+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)

0 commit comments

Comments
 (0)