Skip to content

Commit 473f7f3

Browse files
Moved devops scripts.
1 parent 5ab6a11 commit 473f7f3

File tree

16 files changed

+60
-8
lines changed

16 files changed

+60
-8
lines changed

LuaCodeViewExample/LuaCodeViewExample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<Reference Include="System.Core" />
8888
<Reference Include="Xamarin.iOS" />
8989
<Reference Include="CYRTextView">
90-
<HintPath>..\packages\Codefoco.CYRTextView.0.4.4\lib\xamarinios\CYRTextView.dll</HintPath>
90+
<HintPath>..\packages\Codefoco.CYRTextView.0.4.6\lib\xamarinios\CYRTextView.dll</HintPath>
9191
</Reference>
9292
</ItemGroup>
9393
<ItemGroup>

LuaCodeViewExample/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Codefoco.CYRTextView" version="0.4.4" targetFramework="xamarinios10" />
3+
<package id="Codefoco.CYRTextView" version="0.4.6" targetFramework="xamarinios10" />
44
</packages>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LuaCodeView.iOS
1010

1111
| | Status |
1212
| :------ | :------: |
13-
| ![mac](https://badgen.net/badge//iOS?icon=apple&color=purple&list=1) | [![Build Status](https://dev.azure.com/NLua/NLua/_apis/build/status/Codefoco.LuaCodeView.iOS?branchName=master)](https://dev.azure.com/NLua/NLua/_build/latest?definitionId=10&branchName=master) |
13+
| ![mac](https://badgen.net/badge//iOS?icon=apple&color=purple&list=1) | [![Build Status](https://dev.azure.com/codefoco/NuGets/_apis/build/status/Codefoco.LuaCodeView.iOS/Codefoco.LuaCodeView.iOS?branchName=master)](https://dev.azure.com/codefoco/NuGets/_build/latest?definitionId=9&branchName=master) |
1414

1515
UITextView with Lua syntax highlight
1616

build/XamariniOS/LuaCodeView.iOS.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<Reference Include="System.Core" />
4545
<Reference Include="Xamarin.iOS" />
4646
<Reference Include="CYRTextView">
47-
<HintPath>..\..\packages\Codefoco.CYRTextView.0.4.4\lib\xamarinios\CYRTextView.dll</HintPath>
47+
<HintPath>..\..\packages\Codefoco.CYRTextView.0.4.6\lib\xamarinios\CYRTextView.dll</HintPath>
4848
</Reference>
4949
</ItemGroup>
5050
<ItemGroup>

build/XamariniOS/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Codefoco.CYRTextView" version="0.4.4" targetFramework="xamarinios10" />
3+
<package id="Codefoco.CYRTextView" version="0.4.6" targetFramework="xamarinios10" />
44
</packages>

Package.ps1 renamed to devops/Package.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
param ([string] $PackageId, [string] $NuSpecFile)
22

3-
. .\BuildFunctions.ps1
3+
. .\devops\BuildFunctions.ps1
44

55
$hash = Get-Current-Commit-Hash
66
$releaseNotes = "Release: $($hash)"

PreBuild.ps1 renamed to devops/PreBuild.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
param ([string] $PackageId, [string] $NuSpecFile)
22

3-
. ./BuildFunctions.ps1
3+
. .\devops\BuildFunctions.ps1
44

55
$nextVersion = Get-Next-Version-String $PackageId
66

Publish.ps1 renamed to devops/Publish.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
param ([string] $PackageId)
22

3-
. .\BuildFunctions.ps1
3+
. .\devops\BuildFunctions.ps1
44

55
if (-Not (Test-Should-Deploy)) {
66
return

devops/azure-devops.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
pool:
2+
name: Hosted macOS
3+
demands: msbuild
4+
5+
steps:
6+
- task: NuGetCommand@2
7+
displayName: 'NuGet restore'
8+
9+
- script: 'brew update'
10+
displayName: 'Brew Update'
11+
12+
- script: 'brew install gitversion --ignore-dependencies'
13+
displayName: 'Install GitVersion'
14+
15+
- task: PowerShell@2
16+
displayName: 'PreBuild Script'
17+
inputs:
18+
targetType: filePath
19+
filePath: ./devops/PreBuild.ps1
20+
arguments: 'Codefoco.LuaCodeView.iOS LuaCodeView.iOS.nuspec'
21+
22+
- task: MSBuild@1
23+
displayName: 'Build solution LuaCodeView.iOS.sln'
24+
inputs:
25+
solution: LuaCodeView.iOS.sln
26+
configuration: Release
27+
28+
- script: 'nuget setapikey $(apikey)'
29+
displayName: 'Set NuGet API Key'
30+
31+
- task: PowerShell@2
32+
displayName: 'Package NuGet'
33+
inputs:
34+
targetType: filePath
35+
filePath: ./devops/Package.ps1
36+
arguments: 'Codefoco.LuaCodeView.iOS LuaCodeView.iOS.nuspec'
37+
38+
- script: 'mv *.nupkg Codefoco.LuaCodeView.iOS.nupkg'
39+
displayName: 'Rename NuGet package'
40+
41+
- task: PublishBuildArtifacts@1
42+
displayName: 'Publish Codefoco.LuaCodeView.iOS.nupkg Artifact'
43+
inputs:
44+
PathtoPublish: Codefoco.LuaCodeView.iOS.nupkg
45+
ArtifactName: Codefoco.LuaCodeView.iOS.nupkg
46+
47+
- task: PowerShell@2
48+
displayName: 'Publish NuGet'
49+
inputs:
50+
targetType: filePath
51+
filePath: ./devops/Publish.ps1
52+
arguments: Codefoco.LuaCodeView.iOS

0 commit comments

Comments
 (0)