summaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-23 00:54:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-23 00:54:12 +0800
commitb171e92da5ce7f5c79e33003fbdfcbb65532ef57 (patch)
tree52aff1100f9bc172dd525b6e026a5ef76f76896f /azure-pipelines.yml
parent137afac8fbda740b56c3e4b8f8e77260c29f0b10 (diff)
downloadlua-language-server-b171e92da5ce7f5c79e33003fbdfcbb65532ef57.zip
编译与自动集成
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml92
1 files changed, 92 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 00000000..fd71d0e7
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,92 @@
+trigger:
+- master
+
+jobs:
+- job: windows
+ pool:
+ vmImage: 'windows-latest'
+
+ steps:
+ - script: |
+ git submodule update --init --recursive
+ displayName: 'Init'
+ - script: |
+ cd 3rd\luamake
+ tools\ninja.exe -f ninja\msvc.ninja
+ cd ..\..
+ displayName: 'Compile luamake'
+ - script: |
+ 3rd\luamake\luamake.exe rebuild
+ displayName: 'Compile'
+ - task: CopyFiles@2
+ inputs:
+ Contents: '**'
+ SourceFolder: 'bin\Windows'
+ TargetFolder: '$(Build.ArtifactStagingDirectory)'
+ - task: PublishBuildArtifacts@1
+ inputs:
+ pathToPublish: $(Build.ArtifactStagingDirectory)
+ artifactName: sumneko.lua-windows
+
+- job: macos
+ pool:
+ vmImage: 'macos-latest'
+
+ steps:
+ - bash: |
+ git submodule update --init --recursive
+ displayName: 'Init'
+ - bash: |
+ sudo xcode-select -s /Applications/Xcode_10.2.app
+ brew install ninja
+ displayName: 'Install'
+ - bash: |
+ cd 3rd/luamake
+ ninja -f ninja/macos.ninja
+ cd ../..
+ displayName: 'Compile luamake'
+ - bash: |
+ rm -r server/macOS/*
+ ./3rd/luamake/luamake rebuild
+ displayName: 'Compile'
+ - task: CopyFiles@2
+ inputs:
+ Contents: '**'
+ SourceFolder: 'bin/macOS
+ TargetFolder: '$(Build.ArtifactStagingDirectory)'
+ - task: PublishBuildArtifacts@1
+ inputs:
+ pathToPublish: $(Build.ArtifactStagingDirectory)
+ artifactName: sumneko.lua-macos
+
+- job: linux
+ pool:
+ vmImage: 'ubuntu-latest'
+
+ steps:
+ - bash: |
+ git submodule update --init --recursive
+ displayName: 'Init'
+ - bash: |
+ sudo apt-get update
+ sudo apt-get install -y libreadline-dev ninja-build
+ sudo apt-get install -y g++-8
+ displayName: 'Install'
+ - bash: |
+ cd 3rd/luamake
+ ninja -f ninja/linux.ninja
+ cd ../..
+ displayName: 'Compile luamake'
+ - bash: |
+ rm -r server/Linux/*
+ ./3rd/luamake/luamake rebuild
+ displayName: 'Compile'
+ - task: CopyFiles@2
+ inputs:
+ Contents: '**'
+ SourceFolder: 'bin/Linux'
+ TargetFolder: '$(Build.ArtifactStagingDirectory)'
+ - task: PublishBuildArtifacts@1
+ inputs:
+ pathToPublish: $(Build.ArtifactStagingDirectory)
+ artifactName: sumneko.lua-linux