Skip to content

Commit fc7ce7d

Browse files
committed
fix(build): modify build scripts to target individual projects
1 parent 212feaa commit fc7ce7d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if(Test-Path .\artifacts) { Remove-Item .\artifacts -Force -Recurse }
5252

5353
EnsurePsbuildInstalled
5454

55-
exec { & dotnet restore }
55+
exec { & dotnet restore ./src/JsonApiDotNetCore/JsonApiDotNetCore.csproj }
5656

5757
#Invoke-MSBuild
5858

build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ if [ -d $artifactsFolder ]; then
99
rm -R $artifactsFolder
1010
fi
1111

12-
dotnet restore
12+
dotnet restore ./src/JsonApiDotNetCore/JsonApiDotNetCore.csproj
13+
dotnet restore ./src/JsonApiDotNetCoreExample/JsonApiDotNetCoreExample.csproj
14+
dotnet restore ./test/JsonApiDotNetCoreExampleTests/JsonApiDotNetCoreExampleTests.csproj
1315

14-
dotnet test ./test/JsonApiDotNetCoreExampleTests -c Release -f netcoreapp1.0
16+
dotnet test ./test/JsonApiDotNetCoreExampleTests/JsonApiDotNetCoreExampleTests.csproj
1517

1618
revision=${TRAVIS_JOB_ID:=1}
1719
revision=$(printf "%04d" $revision)

0 commit comments

Comments
 (0)