Commit 9c7a7093 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Update CI.

parent 38e33b6a
......@@ -21,14 +21,14 @@
<files>
<file src="lib\Release\MonoAndroid\NLua.dll" target="lib\MonoAndroid" />
<file src="lib\Release\net45\NLua.dll" target="lib\net45" />
<file src="lib\Release\netcore\netcoreapp3.0\NLua.dll" target="lib\netcoreapp3.0" />
<file src="lib\Release\netcore\netcoreapp3.1\NLua.dll" target="lib\netcoreapp3.1" />
<file src="lib\Release\netstandard2.0\NLua.dll" target="lib\netstandard2.0" />
<file src="lib\Release\xamarinios\NLua.dll" target="lib\xamarinios" />
<file src="lib\Release\xamarinmac\NLua.dll" target="lib\xamarinmac" />
<file src="lib\Release\xamarintvos\NLua.dll" target="lib\xamarintvos" />
<file src="lib\Release\xamarinwatchos\NLua.dll" target="lib\xamarinwatchos" />
<!-- <file src="lib\Release\netstandard2.0\NLua.xml" target="lib\netstandard2.0" />
<file src="lib\Release\netcore\netcoreapp3.0\NLua.xml" target="lib\netcoreapp3.0" />
<file src="lib\Release\netcore\netcoreapp3.1\NLua.xml" target="lib\netcoreapp3.1" />
<file src="lib\Release\MonoAndroid\NLua.xml" target="lib\MonoAndroid" />
<file src="lib\Release\net45\NLua.xml" target="lib\xamarinmac" />
<file src="lib\Release\net45\NLua.xml" target="lib\xamarintvos" />
......
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>NLua</RootNamespace>
<AssemblyName>NLua</AssemblyName>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
......
# Repo: codefoco/AzureDevopsTemplates
resources:
repositories:
- repository: templates
type: github
name: codefoco/AzureDevopsTemplates
endpoint: codefoco
pool:
name: Hosted Ubuntu 1604
vmImage: 'ubuntu-16.04'
demands: msbuild
steps:
- checkout: self
- task: UseDotNet@2
displayName: 'Install .NET Core 3.0.102'
inputs:
packageType: sdk
version: '3.0.102'
installationPath: $(Agent.ToolsDirectory)/dotnet
- template: common-dotnet.yml@templates
- task: NuGetToolInstaller@1
displayName: 'Use NuGet 5.4.0'
inputs:
versionSpec: 5.4.0
- checkout: self
- task: NuGetCommand@2
displayName: 'NuGet restore'
......@@ -34,41 +32,6 @@ steps:
inputs:
command: custom
custom: vstest
arguments: 'tests/build/netcore/bin/Release/netcoreapp3.0/NLuaTest.dll'
- task: SendTelegramNotification@0
condition: in(variables['Agent.JobStatus'], 'SucceededWithIssues')
inputs:
botToken: '$(botToken)'
chats: '$(chatId)'
taskStatus: false
message: |
⚠️ <b>Warning!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
<pre>$(Build.SourceVersion)</pre>
$(Build.SourceVersionMessage) by $(Build.QueuedBy)
- task: SendTelegramNotification@0
condition: in(variables['Agent.JobStatus'], 'Failed')
inputs:
botToken: '$(botToken)'
chats: '$(chatId)'
taskStatus: false
buildQueuedBy: false
message: |
❌ <b>Fail!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
<pre>$(Build.SourceVersion)</pre>
$(Build.SourceVersionMessage) by $(Build.QueuedBy)
- task: SendTelegramNotification@0
condition: in(variables['Agent.JobStatus'], 'Succeeded')
inputs:
botToken: '$(botToken)'
chats: '$(chatId)'
taskStatus: false
buildQueuedBy: false
message: |
✅ <b>Success!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
<pre>$(Build.SourceVersion)</pre>
$(Build.SourceVersionMessage) by $(Build.QueuedBy)
arguments: 'tests/build/netcore/bin/Release/netcoreapp3.1/NLuaTest.dll'
#
\ No newline at end of file
- template: send-telegram.yml@templates
......@@ -11,28 +11,10 @@ pool:
demands: msbuild
steps:
- checkout: self
# Print the current version of Xcode
- task: CmdLine@2
displayName: 'Show Xcode version'
inputs:
script: '/usr/bin/xcodebuild -version'
# Azure DevOps hosted pool is still using an old version of Xamarin.iOS,
- task: CmdLine@2
displayName: 'Provisioning Xamarin.iOS'
inputs:
script: 'cd ~;
curl -O https://download.visualstudio.microsoft.com/download/pr/d11a42ff-dd11-4005-b5a8-799856a96aad/2893a2da0df8a2e2d45ea17e2be2ccce/xamarin.ios-13.4.0.2.pkg;
sudo installer -pkg ~/xamarin.ios-13.4.0.2.pkg -target /'
# Print the current version of Xamarin.iOS
- task: CmdLine@2
displayName: 'Show Xamarin.iOS Version'
inputs:
script: '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch --version'
- template: common-dotnet.yml@templates
- template: common-macos.yml@templates
- task: NuGetCommand@2
displayName: 'NuGet restore'
......@@ -44,12 +26,6 @@ steps:
inputs:
restoreSolution: NLua.Mac.sln
- script: 'brew update'
displayName: 'Brew Update'
- script: 'brew install gitversion --ignore-dependencies'
displayName: 'Install GitVersion'
- task: PowerShell@2
displayName: 'PowerShell Script'
inputs:
......@@ -138,39 +114,4 @@ steps:
useSameSourceVersion: true
password: '$(myToken)'
- task: SendTelegramNotification@0
condition: in(variables['Agent.JobStatus'], 'SucceededWithIssues')
inputs:
botToken: '$(botToken)'
chats: '$(chatId)'
taskStatus: false
message: |
⚠️ <b>Warning!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
<pre>$(Build.SourceVersion)</pre>
$(Build.SourceVersionMessage) by $(Build.QueuedBy)
- task: SendTelegramNotification@0
condition: in(variables['Agent.JobStatus'], 'Failed')
inputs:
botToken: '$(botToken)'
chats: '$(chatId)'
taskStatus: false
buildQueuedBy: false
message: |
❌ <b>Fail!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
<pre>$(Build.SourceVersion)</pre>
$(Build.SourceVersionMessage) by $(Build.QueuedBy)
- task: SendTelegramNotification@0
condition: in(variables['Agent.JobStatus'], 'Succeeded')
inputs:
botToken: '$(botToken)'
chats: '$(chatId)'
taskStatus: false
buildQueuedBy: false
message: |
✅ <b>Success!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
<pre>$(Build.SourceVersion)</pre>
$(Build.SourceVersionMessage) by $(Build.QueuedBy)
#
\ No newline at end of file
- template: send-telegram.yml@templates
......@@ -6,17 +6,11 @@ pool:
- vstest
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core 3.0.102'
inputs:
packageType: sdk
version: '3.0.102'
installationPath: $(Agent.ToolsDirectory)/dotnet
- checkout: self
submodules: true
- task: NuGetToolInstaller@1
displayName: 'Use NuGet 5.4.0'
inputs:
versionSpec: 5.4.0
- template: common-dotnet.yml@templates
- template: common-win.yml@templates
- task: NuGetCommand@2
displayName: 'NuGet restore'
......@@ -28,12 +22,6 @@ steps:
inputs:
restoreSolution: NLua.Core.sln
- powershell: 'Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1''))'
displayName: 'Install Choco'
- script: 'choco install gitversion.portable --pre '
displayName: 'Install GitVersion'
- task: PowerShell@2
displayName: 'PreBuild Script'
inputs:
......@@ -60,7 +48,7 @@ steps:
inputs:
command: custom
custom: vstest
arguments: '.\tests\build\netcore\bin\Release\netcoreapp3.0\NLuaTest.dll'
arguments: '.\tests\build\netcore\bin\Release\netcoreapp3.1\NLuaTest.dll'
- task: MSBuild@1
displayName: 'Build Android'
......@@ -161,39 +149,4 @@ steps:
filePath: ./devops/Publish.ps1
arguments: NLua
- task: SendTelegramNotification@0
condition: in(variables['Agent.JobStatus'], 'SucceededWithIssues')
inputs:
botToken: '$(botToken)'
chats: '$(chatId)'
taskStatus: false
message: |
⚠️ <b>Warning!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
<pre>$(Build.SourceVersion)</pre>
$(Build.SourceVersionMessage) by $(Build.QueuedBy)
- task: SendTelegramNotification@0
condition: in(variables['Agent.JobStatus'], 'Failed')
inputs:
botToken: '$(botToken)'
chats: '$(chatId)'
taskStatus: false
buildQueuedBy: false
message: |
❌ <b>Fail!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
<pre>$(Build.SourceVersion)</pre>
$(Build.SourceVersionMessage) by $(Build.QueuedBy)
- task: SendTelegramNotification@0
condition: in(variables['Agent.JobStatus'], 'Succeeded')
inputs:
botToken: '$(botToken)'
chats: '$(chatId)'
taskStatus: false
buildQueuedBy: false
message: |
✅ <b>Success!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
<pre>$(Build.SourceVersion)</pre>
$(Build.SourceVersionMessage) by $(Build.QueuedBy)
#
\ No newline at end of file
- template: send-telegram.yml@templates
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment