From 8564a3d2049b0dbc739b5c36493cbd5586e15dbc Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Thu, 20 Feb 2020 23:03:25 -0800 Subject: [PATCH 1/8] 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 From ff4148548c198f156e1bcc764565294276723aa1 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Thu, 20 Feb 2020 23:05:46 -0800 Subject: [PATCH 2/8] fix drone config --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 6370f0e..e96b6e9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,6 +7,7 @@ workspace: steps: - name: library + image: mcr.microsoft.com/dotnet/core/sdk:3.1 commands: - git clone git@gitea.moonside.games:MoonsideGames/physfslibs.git - mv /build/physfslibs/lib64/libphysfs.3.0.2 /build/physfslibs/lib64/libphysfs.so From eb833428029edf0dc957048a93ff7cfbed393401 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Thu, 20 Feb 2020 23:06:51 -0800 Subject: [PATCH 3/8] try to clone from https in drone build --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e96b6e9..af7f180 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,7 @@ steps: - name: library image: mcr.microsoft.com/dotnet/core/sdk:3.1 commands: - - git clone git@gitea.moonside.games:MoonsideGames/physfslibs.git + - git clone https://gitea.moonside.games/MoonsideGames/physfslibs.git - mv /build/physfslibs/lib64/libphysfs.3.0.2 /build/physfslibs/lib64/libphysfs.so - name: test From 60783596cb60fdbdd6bd990a3729ec8d7ab3a097 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Thu, 20 Feb 2020 23:07:31 -0800 Subject: [PATCH 4/8] lfs init --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index af7f180..cff2d25 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,6 +10,8 @@ steps: image: mcr.microsoft.com/dotnet/core/sdk:3.1 commands: - git clone https://gitea.moonside.games/MoonsideGames/physfslibs.git + - git lfs fetch + - git lfs pull - mv /build/physfslibs/lib64/libphysfs.3.0.2 /build/physfslibs/lib64/libphysfs.so - name: test From 1fe2fcab68c80918733df2ee31f32353153905d8 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Thu, 20 Feb 2020 23:12:34 -0800 Subject: [PATCH 5/8] try git lfs docekr --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index cff2d25..eedc25d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,8 +7,9 @@ workspace: steps: - name: library - image: mcr.microsoft.com/dotnet/core/sdk:3.1 + image: macjustice/git-lfs:latest commands: + - - git clone https://gitea.moonside.games/MoonsideGames/physfslibs.git - git lfs fetch - git lfs pull From 5f158adc5a89a221213b97375b83e39a8cbe5915 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Thu, 20 Feb 2020 23:24:32 -0800 Subject: [PATCH 6/8] fix bad lib name --- .drone.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index eedc25d..92dfbaa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,11 +9,8 @@ steps: - name: library image: macjustice/git-lfs:latest commands: - - - git clone https://gitea.moonside.games/MoonsideGames/physfslibs.git - - git lfs fetch - - git lfs pull - - mv /build/physfslibs/lib64/libphysfs.3.0.2 /build/physfslibs/lib64/libphysfs.so + - mv /build/physfslibs/lib64/libphysfs.so.3.0.2 /build/physfslibs/lib64/libphysfs.so - name: test image: mcr.microsoft.com/dotnet/core/sdk:3.1 From 25f78aa5f3936213426ec818fc3c76a83f9dbdf2 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Thu, 20 Feb 2020 23:26:29 -0800 Subject: [PATCH 7/8] remove deploy step --- .drone.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 92dfbaa..88edb6d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,14 +19,3 @@ steps: 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/*.*.* From 57e5999b76a766513da587b015bd7b077ef448db Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Thu, 20 Feb 2020 23:28:57 -0800 Subject: [PATCH 8/8] add CI badge to readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 220d9d2..6a375fb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # MoonTools.NETPhysFS +[![Build Status](https://drone.moonside.games/api/badges/MoonsideGames/MoonTools.NETPhysFS/status.svg)](https://drone.moonside.games/MoonsideGames/MoonTools.NETPhysFS) + ## PhysFS wrapper for .NET Standard This library is a .NET Standard wrapper around the cross-platform IO libary [PhysFS](https://icculus.org/physfs/).