From 2af79eb9db2a7bd253a119b61b54e50f524fb051 Mon Sep 17 00:00:00 2001 From: Leorize Date: Thu, 6 Feb 2020 12:32:45 -0600 Subject: [PATCH 01/11] azure-pipelines.yml: test important packages --- azure-pipelines.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..81cff95c --- /dev/null +++ b/azure-pipelines.yml @@ -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) From 98e5ff1033b1bd6835e145a126ac9c7865952ab8 Mon Sep 17 00:00:00 2001 From: Leorize Date: Thu, 6 Feb 2020 12:47:03 -0600 Subject: [PATCH 02/11] azure-pipelines.yml: syntax fixes --- azure-pipelines.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 81cff95c..287c21c7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,10 +1,11 @@ -vmImage: 'ubuntu-latest' +pool: + vmImage: 'ubuntu-latest' variables: - - CHOOSENIM_NO_ANALYTICS: 1 - - CHOOSENIM_CHOOSE_VERSION: '#16c39f9b2edc963655889cfd33e165bfae91c96d' + CHOOSENIM_NO_ANALYTICS: 1 + CHOOSENIM_CHOOSE_VERSION: '#16c39f9b2edc963655889cfd33e165bfae91c96d' # bump everytime choosenim has to be updated - - CHOOSENIM_REVISION: 1 + CHOOSENIM_REVISION: 1 steps: - task: Cache@2 From b1e391b384546fe8e05e82f76b4c8b43179830c2 Mon Sep 17 00:00:00 2001 From: Leorize Date: Thu, 6 Feb 2020 12:48:36 -0600 Subject: [PATCH 03/11] azure-pipelines: fix even more syntax errors --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 287c21c7..045dbda7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,14 +10,14 @@ variables: steps: - task: Cache@2 inputs: - key: 'toolchain' | $(CHOOSENIM_CHOOSE_VERSION) | $(CHOOSENIM_REVISION) | $(Agent.OS) + 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) + key: 'choosenim | "$(CHOOSENIM_CHOOSE_VERSION)" | "$(CHOOSENIM_REVISION)" | "$(Agent.OS)" ' path: $(HOME)/.nimble/bin cacheHitVar: CHOOSENIM_CACHED displayName: 'Restore choosenim' From dbf30ceeec04803c8274b8f0c224b6308e29e748 Mon Sep 17 00:00:00 2001 From: Leorize Date: Thu, 6 Feb 2020 12:54:46 -0600 Subject: [PATCH 04/11] azure-pipelines: fix typo --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 045dbda7..326642ba 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,7 +29,7 @@ steps: 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) + condition: eq($(CHOOSENIM_CACHED), false) - bash: testament cat nimble-packages displayName: 'Test important packages' From 22c7c8ffa50e59e181d6fd999e2cfa06b6ef5b82 Mon Sep 17 00:00:00 2001 From: Leorize Date: Thu, 6 Feb 2020 12:57:08 -0600 Subject: [PATCH 05/11] azure-pipelines: hopefully last syntax error --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 326642ba..bc4029e5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,7 +29,7 @@ steps: 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) + condition: eq(variables.CHOOSENIM_CACHED, false) - bash: testament cat nimble-packages displayName: 'Test important packages' From 9f91702b0ee46b8845932be92950fc5f17947562 Mon Sep 17 00:00:00 2001 From: Leorize Date: Thu, 6 Feb 2020 13:06:46 -0600 Subject: [PATCH 06/11] azure-pipelines.yml: unify cache signature, fix path --- azure-pipelines.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bc4029e5..8104cb75 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,23 +6,24 @@ variables: CHOOSENIM_CHOOSE_VERSION: '#16c39f9b2edc963655889cfd33e165bfae91c96d' # bump everytime choosenim has to be updated CHOOSENIM_REVISION: 1 + CHOOSENIM_CACHE_SIGNATURE: '"$(CHOOSENIM_CHOOSE_VERSION)" | "$(CHOOSENIM_REVISION)" | "$(Agent.OS)"' steps: - task: Cache@2 inputs: - key: 'toolchain | "$(CHOOSENIM_CHOOSE_VERSION)" | "$(CHOOSENIM_REVISION)" | "$(Agent.OS)"' + key: 'toolchain | $(CHOOSENIM_CACHE_SIGNATURE)' path: $(HOME)/.choosenim cacheHitVar: CHOOSENIM_CACHED displayName: 'Restore choosenim toolchains' - task: Cache@2 inputs: - key: 'choosenim | "$(CHOOSENIM_CHOOSE_VERSION)" | "$(CHOOSENIM_REVISION)" | "$(Agent.OS)" ' + key: 'choosenim | $(CHOOSENIM_CACHE_SIGNATURE)' path: $(HOME)/.nimble/bin cacheHitVar: CHOOSENIM_CACHED displayName: 'Restore choosenim' - - bash: echo '##vso[task.prependpath]$HOME/.nimble/bin' + - bash: echo "##vso[task.prependpath]$HOME/.nimble/bin" displayName: 'Setup environment' - bash: | From 32bac612b4cb3b38a85505ff1c15f94657406b58 Mon Sep 17 00:00:00 2001 From: Leorize Date: Thu, 6 Feb 2020 14:41:44 -0600 Subject: [PATCH 07/11] azure-pipelines: install nimble too --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8104cb75..85236c71 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,6 +32,9 @@ steps: displayName: 'Install Nim with choosenim' condition: eq(variables.CHOOSENIM_CACHED, false) + - bash: nim c -r src/nimble install -y + displayName: 'Builds and install nimble' + - bash: testament cat nimble-packages displayName: 'Test important packages' env: From 4534ca5f118bc2e8e049cfad5bc631db82cc38b5 Mon Sep 17 00:00:00 2001 From: Leorize Date: Thu, 6 Feb 2020 14:51:20 -0600 Subject: [PATCH 08/11] azure-pipelines: switch testing to windows This works with devel, so should work with us too (in theory) --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 85236c71..c1188d2d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,5 +1,5 @@ pool: - vmImage: 'ubuntu-latest' + vmImage: 'windows-latest' variables: CHOOSENIM_NO_ANALYTICS: 1 From 796ba4d349da221159e9f90ff4193207f0d3cca0 Mon Sep 17 00:00:00 2001 From: Leorize Date: Thu, 6 Feb 2020 14:52:33 -0600 Subject: [PATCH 09/11] grammar, not even sure if correct --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c1188d2d..e6618b53 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,7 +33,7 @@ steps: condition: eq(variables.CHOOSENIM_CACHED, false) - bash: nim c -r src/nimble install -y - displayName: 'Builds and install nimble' + displayName: 'Build and install nimble' - bash: testament cat nimble-packages displayName: 'Test important packages' From 61a04d0beaddeec5c362abec31d8b152da730979 Mon Sep 17 00:00:00 2001 From: Leorize Date: Thu, 6 Feb 2020 20:40:10 -0600 Subject: [PATCH 10/11] azure-pipelines.yml: match hash with master, use ubuntu image --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e6618b53..98b8deec 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,9 +1,9 @@ pool: - vmImage: 'windows-latest' + vmImage: 'ubuntu-latest' variables: CHOOSENIM_NO_ANALYTICS: 1 - CHOOSENIM_CHOOSE_VERSION: '#16c39f9b2edc963655889cfd33e165bfae91c96d' + CHOOSENIM_CHOOSE_VERSION: '#ab525cc48abdbbbed1f772e58e9fe21474f70f07' # bump everytime choosenim has to be updated CHOOSENIM_REVISION: 1 CHOOSENIM_CACHE_SIGNATURE: '"$(CHOOSENIM_CHOOSE_VERSION)" | "$(CHOOSENIM_REVISION)" | "$(Agent.OS)"' From e2ddbc2c0754b5906be2e0acf3d9a4c427c628c3 Mon Sep 17 00:00:00 2001 From: Leorize Date: Wed, 18 Mar 2020 13:28:02 -0500 Subject: [PATCH 11/11] azure-pipelines: give it a pass even if it fails --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 98b8deec..3ba028c5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -35,7 +35,8 @@ steps: - bash: nim c -r src/nimble install -y displayName: 'Build and install nimble' - - bash: testament cat nimble-packages + - bash: | + testament cat nimble-packages || echo '#vso[task.complete result=SucceededWithIssues;]' displayName: 'Test important packages' env: SYSTEM_ACCESSTOKEN: $(System.AccessToken)