Skip to content

Commit 2b09979

Browse files
add travis
1 parent 4539042 commit 2b09979

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

src/SDK/Language/DotNet.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,12 @@ public function getFiles()
293293
'template' => '/dotnet/LICENSE.twig',
294294
'minify' => false,
295295
],
296+
[
297+
'scope' => 'default',
298+
'destination' => '.travis.yml',
299+
'template' => '/dotnet/.travis.yml.twig',
300+
'minify' => false,
301+
],
296302
[
297303
'scope' => 'method',
298304
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md',

templates/dotnet/.travis.yml.twig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: csharp
2+
3+
mono: none
4+
5+
dotnet: 5.0
6+
7+
before_install:
8+
- sudo apt-get -y install libpam0g-dev
9+
10+
install:
11+
- dotnet restore ./src
12+
13+
script:
14+
- dotnet build -c Release ./src
15+
16+
before_deploy:
17+
- dotnet pack -c Release ./src
18+
19+
deploy:
20+
skip_cleanup: true
21+
provider: script
22+
script: dotnet nuget push ./src/Appwrite/bin/Release/Appwrite.*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
23+
on:
24+
tags: true

0 commit comments

Comments
 (0)