From 8e480cb87f335b55ff63f9615ce6bfa9838156e4 Mon Sep 17 00:00:00 2001 From: "azure-pipelines[bot]" Date: Thu, 29 Nov 2018 18:58:45 +0000 Subject: [PATCH 1/8] Set up CI with Azure Pipelines --- azure-pipelines.yml | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000000..f90862ff770a --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,53 @@ +# Node.js +# Build a general Node.js project with npm. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript + +jobs: +- job: Linux + pool: + vmImage: 'Ubuntu 16.04' + steps: + - task: NodeTool@0 + inputs: + versionSpec: '8.x' + displayName: 'Install Node.js' + - script: | + npm install + npm run build + displayName: 'npm install and build' + - script: | + yarn jest --color + displayName: 'test' + +- job: macOS + pool: + vmImage: 'macOS-10.13' + steps: + - task: NodeTool@0 + inputs: + versionSpec: '8.x' + displayName: 'Install Node.js' + - script: | + npm install + npm run build + displayName: 'npm install and build' + - script: | + yarn jest --color + displayName: 'test' + +- job: Windows + pool: + vmImage: 'vs2017-win2016' + steps: + - task: NodeTool@0 + inputs: + versionSpec: '8.x' + displayName: 'Install Node.js' + - script: | + npm install + npm run build + displayName: 'npm install and build' + - script: | + yarn jest --color + displayName: 'test' \ No newline at end of file From 87200595e0cdb9abe20bdcc278aac84e7df21a06 Mon Sep 17 00:00:00 2001 From: Kayla Ngan Date: Fri, 14 Dec 2018 10:59:13 -0500 Subject: [PATCH 2/8] Update azure-pipelines.yml --- azure-pipelines.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f90862ff770a..bf2318e32637 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -17,7 +17,7 @@ jobs: npm run build displayName: 'npm install and build' - script: | - yarn jest --color + yarn run test-ci-partial displayName: 'test' - job: macOS @@ -31,10 +31,8 @@ jobs: - script: | npm install npm run build - displayName: 'npm install and build' - - script: | yarn jest --color - displayName: 'test' + displayName: 'install, build, and test' - job: Windows pool: @@ -50,4 +48,4 @@ jobs: displayName: 'npm install and build' - script: | yarn jest --color - displayName: 'test' \ No newline at end of file + displayName: 'test' From f5af0bc01f6b131b72127e7648bb401390f1ea7d Mon Sep 17 00:00:00 2001 From: Will Smythe Date: Fri, 14 Dec 2018 15:31:46 -0500 Subject: [PATCH 3/8] run yarn instead of npm --- azure-pipelines.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bf2318e32637..5a459dbeaa7a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,12 +10,11 @@ jobs: steps: - task: NodeTool@0 inputs: - versionSpec: '8.x' + versionSpec: '10.x' displayName: 'Install Node.js' - script: | - npm install - npm run build - displayName: 'npm install and build' + yarn + displayName: 'yarn' - script: | yarn run test-ci-partial displayName: 'test' @@ -26,11 +25,10 @@ jobs: steps: - task: NodeTool@0 inputs: - versionSpec: '8.x' + versionSpec: '10.x' displayName: 'Install Node.js' - script: | - npm install - npm run build + yarn yarn jest --color displayName: 'install, build, and test' @@ -40,12 +38,11 @@ jobs: steps: - task: NodeTool@0 inputs: - versionSpec: '8.x' + versionSpec: '10.x' displayName: 'Install Node.js' - script: | - npm install - npm run build - displayName: 'npm install and build' + yarn + displayName: 'yarn' - script: | yarn jest --color displayName: 'test' From 89a751d300fa33b1afe58675fc456e31481ca499 Mon Sep 17 00:00:00 2001 From: Kayla Ngan Date: Wed, 19 Dec 2018 14:33:09 -0500 Subject: [PATCH 4/8] update python version for windows --- azure-pipelines.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5a459dbeaa7a..4fbdd89f29fe 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -40,6 +40,10 @@ jobs: inputs: versionSpec: '10.x' displayName: 'Install Node.js' + - task: UsePythonVersion@0 + inputs: + versionSpec: '2.7' + displayName: 'Install Python' - script: | yarn displayName: 'yarn' From 672f9a038be24d5d0dc2a231ea3cd7b8f3da4a2f Mon Sep 17 00:00:00 2001 From: Kayla Ngan Date: Wed, 19 Dec 2018 14:58:28 -0500 Subject: [PATCH 5/8] try running linux in container --- azure-pipelines.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4fbdd89f29fe..c76b81f0d620 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,8 +5,13 @@ jobs: - job: Linux + resources: + containers: + - container: my_container + image: ubuntu:16.04 pool: vmImage: 'Ubuntu 16.04' + container: my_container steps: - task: NodeTool@0 inputs: From 7080361fe9398369afe0f64269b3f70b7d907ad5 Mon Sep 17 00:00:00 2001 From: Kayla Ngan Date: Wed, 19 Dec 2018 15:00:03 -0500 Subject: [PATCH 6/8] fix resources for container --- azure-pipelines.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c76b81f0d620..2488f22f0e85 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,12 +3,13 @@ # Add steps that analyze code, save build artifacts, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/languages/javascript +resources: + containers: + - container: my_container + image: ubuntu:16.04 + jobs: - job: Linux - resources: - containers: - - container: my_container - image: ubuntu:16.04 pool: vmImage: 'Ubuntu 16.04' container: my_container From 114f3fc1f7a894981a6ccd7cdeb07620bdb3a36a Mon Sep 17 00:00:00 2001 From: Kayla Ngan Date: Wed, 19 Dec 2018 15:02:38 -0500 Subject: [PATCH 7/8] Update azure-pipelines.yml --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2488f22f0e85..de56087490b3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,6 +19,7 @@ jobs: versionSpec: '10.x' displayName: 'Install Node.js' - script: | + apt-get install yarn yarn displayName: 'yarn' - script: | From ce856b72c49bf8dc5fcd870d9d0dcfc2a2a83021 Mon Sep 17 00:00:00 2001 From: Kayla Ngan Date: Wed, 19 Dec 2018 15:06:44 -0500 Subject: [PATCH 8/8] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index de56087490b3..e0d4cfe20abe 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,7 +19,7 @@ jobs: versionSpec: '10.x' displayName: 'Install Node.js' - script: | - apt-get install yarn + sudo apt-get install yarn yarn displayName: 'yarn' - script: |