Skip to content

Commit

Permalink
first attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
btruncali1 committed Feb 6, 2025
1 parent 17c69eb commit 295e482
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
18 changes: 9 additions & 9 deletions Recurly.Tests/Recurly.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
<PackageReference Include="Moq" Version="4.14.1" />
<PackageReference Include="ReportGenerator" Version="4.5.8" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="2.8.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="2.8.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Recurly\Recurly.csproj" />
<ItemGroup>
<ProjectReference Include="..\Recurly\Recurly.csproj" />
</ItemGroup>

</Project>
16 changes: 15 additions & 1 deletion scripts/build
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
#!/usr/bin/env bash
set -e

if ! command -v dotnet-format; then
# Ensure required dependencies are installed
sudo apt-get update
sudo apt-get install -y libssl1.1 libicu-dev

# Set the environment variable for globalization invariant mode
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

# Set the library path for OpenSSL
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH

# Restore NuGet packages
dotnet restore

if ! command -v dotnet-format &> /dev/null; then
echo "Installing dotnet formatter..."
dotnet tool install -g dotnet-format --version 4.0.0
fi

# Build the project
dotnet build

0 comments on commit 295e482

Please sign in to comment.