aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--azure-pipelines.yml25
-rw-r--r--script/build.ps121
-rw-r--r--script/install_packages.ps121
4 files changed, 47 insertions, 22 deletions
diff --git a/README.md b/README.md
index e8055f26..b3dee2a1 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
# CruUI
-branch `master`: [![pipeline status](https://gitlab.com/crupest/CruUI/badges/master/pipeline.svg)](https://gitlab.com/crupest/CruUI/commits/master)
+[![Build Status](https://dev.azure.com/crupest/CruUI/_apis/build/status/crupest.CruUI)](https://dev.azure.com/crupest/CruUI/_build/latest?definitionId=4)
The project has migrated to [GitLab](https://gitlab.com/crupest/CruUI).
Issues and pull requests can only be found on GitLab. Both of them are
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 00000000..2cc0946b
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,25 @@
+# .NET Desktop
+# Build and run tests for .NET Desktop or Windows classic desktop solutions.
+# Add steps that publish symbols, save build artifacts, and more:
+# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
+
+pool:
+ vmImage: 'VS2017-Win2016'
+
+variables:
+ solution: '**/*.sln'
+ buildPlatform: 'x64'
+ buildConfiguration: 'Debug'
+
+steps:
+- task: PowerShell@2
+ inputs:
+ targetType: 'filePath'
+ filePath: 'script/install_packages.ps1'
+ errorActionPreference: 'stop'
+
+- task: VSBuild@1
+ inputs:
+ solution: '$(solution)'
+ platform: '$(buildPlatform)'
+ configuration: '$(buildConfiguration)'
diff --git a/script/build.ps1 b/script/build.ps1
deleted file mode 100644
index 13f6831d..00000000
--- a/script/build.ps1
+++ /dev/null
@@ -1,21 +0,0 @@
-function CheckLastExitCode
-{
- if ($LASTEXITCODE -ne 0)
- {
- exit $LASTEXITCODE
- }
-}
-
-vcpkg.exe install folly:x64-windows fmt:x64-windows
-& CheckLastExitCode
-
-vcpkg.exe integrate install
-& CheckLastExitCode
-
-& "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" CruUI.sln /target:Build /p:Platform=x64 /p:Configuration=Debug
-
-if ($LASTEXITCODE -ne 0)
-{
- & "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" CruUI.sln /target:Rebuild /p:Platform=x64 /p:Configuration=Debug
- & CheckLastExitCode
-}
diff --git a/script/install_packages.ps1 b/script/install_packages.ps1
new file mode 100644
index 00000000..57109e6d
--- /dev/null
+++ b/script/install_packages.ps1
@@ -0,0 +1,21 @@
+function CheckLastExitCode
+{
+ if ($LASTEXITCODE -ne 0)
+ {
+ exit $LASTEXITCODE
+ }
+}
+
+git clone https://github.com/Microsoft/vcpkg.git --depth=1
+& CheckLastExitCode
+
+cd vcpkg
+
+& .\bootstrap-vcpkg.bat
+& CheckLastExitCode
+
+.\vcpkg.exe install folly:x64-windows fmt:x64-windows
+& CheckLastExitCode
+
+.\vcpkg.exe integrate install
+& CheckLastExitCode