LyokoCMD packages

This commit is contained in:
Lucidiot 2018-10-01 02:19:42 +02:00
parent 9f72f385de
commit 50a2a7290b
No known key found for this signature in database
GPG Key ID: AE3F7205692FA205
6 changed files with 53 additions and 5 deletions

View File

@ -1,3 +1,7 @@
stages:
- test
- deploy
lyokocmd-tests:
image: microsoft/dotnet:2.1-sdk
stage: test
@ -5,3 +9,12 @@ lyokocmd-tests:
- dotnet restore
script:
- dotnet test test/LyokoCMD.Sim.Tests
lyokocmd-deploy:
image: microsoft/dotnet:2.1-sdk
stage: deploy
only:
- master@Lucidiot/LyokoCMD
script:
- dotnet pack --version-suffix latest
- find . -type f -name '*.nupkg' -not -path '*/.git/*' | xargs -n1 -I '{}' dotnet nuget push {} -k $NUGET_API_KEY

View File

@ -1,3 +1,4 @@
NUGET_SOURCE:=Brainshit
run:
cd src/LyokoCMD.CommandLine && dotnet run
@ -10,9 +11,18 @@ all:
clean:
rm -rf {test/LyokoCMD.Sim.Tests,src/LyokoCMD.{Sim,CommandLine,Xana}}/bin
find . -type f -name '*.nupkg' -not -path '*/.git/*' | xargs -r rm
tests:
dotnet test test/LyokoCMD.Sim.Tests/LyokoCMD.Sim.Tests.csproj
restore:
dotnet restore
push-latest: VERSION_SUFFIX=latest
push-latest: push-all
push-all: clean
dotnet pack --version-suffix "$(VERSION_SUFFIX)"
if [ -z "$(NUGET_API_KEY)" ]; then echo "The NUGET_API_KEY variable is required to push to a NuGet server."; exit 1; fi
find . -type f -name '*.nupkg' -not -path '*/.git/*' | xargs -n1 -I '{}' dotnet nuget push {} -k "$(NUGET_API_KEY)" -s "$(NUGET_SOURCE)"

View File

@ -3,13 +3,19 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyName>LyokoCMD.CommandLine</AssemblyName>
<PackageId>LyokoCMD.CommandLine</PackageId>
<VersionPrefix>0.1.0</VersionPrefix>
<Authors>Lucidiot,Valentintintin</Authors>
<Company>Lucidiot,Valentintintin</Company>
<Description>Command line interface for LyokoCMD</Description>
<PackageLicenseUrl>https://gitlab.com/Lucidiot/LyokoCMD/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://gitlab.com/Lucidiot/LyokoCMD</RepositoryUrl>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../LyokoCMD.Sim/LyokoCMD.Sim.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="LyokoCMD.Sim" Version="0.1.0" />
<PackageReference Include="DasConzole.Core" Version="0.1.0" />
</ItemGroup>

View File

@ -3,6 +3,15 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyName>LyokoCMD.Sim</AssemblyName>
<PackageId>LyokoCMD.Sim</PackageId>
<VersionPrefix>0.1.0</VersionPrefix>
<Authors>Lucidiot,Valentintintin</Authors>
<Company>Lucidiot,Valentintintin</Company>
<Description>Code Lyoko supercomputer simulator</Description>
<PackageLicenseUrl>https://gitlab.com/Lucidiot/LyokoCMD/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://gitlab.com/Lucidiot/LyokoCMD</RepositoryUrl>
</PropertyGroup>
<ItemGroup>

View File

@ -3,10 +3,19 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyName>LyokoCMD.Xana</AssemblyName>
<PackageId>LyokoCMD.Xana</PackageId>
<VersionPrefix>0.1.0</VersionPrefix>
<Authors>Lucidiot,Valentintintin</Authors>
<Company>Lucidiot,Valentintintin</Company>
<Description>AI extension for LyokoCMD</Description>
<PackageLicenseUrl>https://gitlab.com/Lucidiot/LyokoCMD/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://gitlab.com/Lucidiot/LyokoCMD</RepositoryUrl>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../LyokoCMD.Sim/LyokoCMD.Sim.csproj" />
<PackageReference Include="LyokoCMD.Sim" Version="0.1.0" />
</ItemGroup>
</Project>

View File

@ -7,6 +7,7 @@
<PackageId>LyokoCMD.Sim.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<RuntimeFrameworkVersion>2.1.1</RuntimeFrameworkVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>