Skip to content

Commit

Permalink
Create package for aspnet as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jammycakes committed Oct 21, 2018
1 parent b35295a commit 1158d6a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
import shutil
import subprocess

projects = [
'FactoryFactory',
'FactoryFactory.AspNet.DependencyInjection'
]

version = '0.1.1'
suffix = ''
is_release = False
Expand Down Expand Up @@ -59,12 +64,14 @@ def dotnet(*args):
shutil.rmtree(abspath('build'), ignore_errors=True)
dotnet('build', abspath('src/FactoryFactory.sln'))
dotnet('test', abspath('src/FactoryFactory.Tests/FactoryFactory.Tests.csproj'))
dotnet(
'pack',
'-o', package_path,
'--no-build',
abspath('src/FactoryFactory/FactoryFactory.csproj')
)

for project in projects:
dotnet(
'pack',
'-o', package_path,
'--no-build',
abspath('src/{0}/{0}.csproj'.format(project))
)

if is_release:
key = os.environ.get('NUGET_KEY', False)
Expand Down

0 comments on commit 1158d6a

Please sign in to comment.