add droneCI config
continuous-integration/drone/push Build encountered an error Details

pull/1/head
Evan Hemsley 2020-02-20 23:03:25 -08:00
parent e3b729594a
commit 8564a3d204
2 changed files with 32 additions and 1 deletions

31
.drone.yml Normal file
View File

@ -0,0 +1,31 @@
kind: pipeline
type: docker
name: default
workspace:
path: /build
steps:
- name: library
commands:
- git clone git@gitea.moonside.games:MoonsideGames/physfslibs.git
- mv /build/physfslibs/lib64/libphysfs.3.0.2 /build/physfslibs/lib64/libphysfs.so
- name: test
image: mcr.microsoft.com/dotnet/core/sdk:3.1
environment:
LD_LIBRARY_PATH: /build/physfslibs/lib64/
commands:
- dotnet build -c Release
- dotnet test -c Release
- name: deploy
image: mcr.microsoft.com/dotnet/core/sdk:3.1
environment:
API_KEY:
from_secret: API_KEY
commands:
- dotnet nuget push /build/NETPhysFS/bin/Release/MoonTools.NETPhysFS.*.nupkg -s https://api.nuget.org/v3/index.json -k $API_KEY
when:
ref:
- refs/tags/*.*.*

2
.gitignore vendored
View File

@ -1,7 +1,7 @@
## Ignore Visual Studio temporary files, build results, and ## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons. ## files generated by popular Visual Studio add-ons.
lib/ libs/
# User-specific files # User-specific files
*.suo *.suo