LyokoCMD packages
This commit is contained in:
parent
9f72f385de
commit
50a2a7290b
|
@ -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
|
||||
|
|
10
Makefile
10
Makefile
|
@ -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)"
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<PackageId>LyokoCMD.Sim.Tests</PackageId>
|
||||
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
||||
<RuntimeFrameworkVersion>2.1.1</RuntimeFrameworkVersion>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Reference in New Issue