From 8564a3d2049b0dbc739b5c36493cbd5586e15dbc Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Thu, 20 Feb 2020 23:03:25 -0800 Subject: [PATCH] add droneCI config --- .drone.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..6370f0e --- /dev/null +++ b/.drone.yml @@ -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/*.*.* diff --git a/.gitignore b/.gitignore index 2c4d113..8ad4f0f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. -lib/ +libs/ # User-specific files *.suo