This repository has been archived on 2022-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
2019-03-21 11:17:19 +00:00
|
|
|
image: mcr.microsoft.com/dotnet/core/sdk:2.1
|
2018-10-01 00:19:42 +00:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- deploy
|
|
|
|
|
2018-08-24 18:03:06 +00:00
|
|
|
lyokocmd-tests:
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
- dotnet restore
|
|
|
|
script:
|
|
|
|
- dotnet test test/LyokoCMD.Sim.Tests
|
2018-10-01 00:19:42 +00:00
|
|
|
|
|
|
|
lyokocmd-deploy:
|
|
|
|
stage: deploy
|
|
|
|
only:
|
|
|
|
- master@Lucidiot/LyokoCMD
|
|
|
|
script:
|
|
|
|
- dotnet pack --version-suffix latest
|
2018-10-01 01:01:50 +00:00
|
|
|
- find . -type f -name '*.nupkg' -not -path '*/.git/*' | sed -r 's/^.*\/([^\/]+)\.nupkg$/\1/;s/^([^0-9]+)\.([0-9.]+(-[a-zA-Z0-9]+)?)$/\1 \2/' | xargs -n2 dotnet nuget delete --non-interactive -k $NUGET_API_KEY || /bin/true
|
2018-10-01 00:19:42 +00:00
|
|
|
- find . -type f -name '*.nupkg' -not -path '*/.git/*' | xargs -n1 -I '{}' dotnet nuget push {} -k $NUGET_API_KEY
|