Skip to content

Commit

Permalink
added warninigs
Browse files Browse the repository at this point in the history
  • Loading branch information
jincod committed Aug 5, 2018
1 parent 486696e commit 8f0583a
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
bin
obj
3 changes: 3 additions & 0 deletions bin/compile
Expand Up @@ -58,4 +58,7 @@ if [ ! -f ${BUILD_DIR}/Procfile ]; then
cat << EOT >> ${BUILD_DIR}/Procfile
web: cd \$HOME/heroku_output && ./${PROJECT_NAME}
EOT
else
topic "WARNING"
echo "Be careful with custom Procfile" | indent
fi
Empty file.
9 changes: 9 additions & 0 deletions test/fixtures/custom-procfile/Program.cs
@@ -0,0 +1,9 @@
namespace custom_procfile
{
public class Program
{
public static void Main(string[] args)
{
}
}
}
Empty file.
11 changes: 11 additions & 0 deletions test/fixtures/custom-procfile/Web.csproj
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
</ItemGroup>

</Project>
6 changes: 6 additions & 0 deletions test/run
Expand Up @@ -6,6 +6,12 @@ testDotNetCore2() {
assertCapturedSuccess
}

testDotNetCore2CustomProcfile() {
compile "custom-procfile"
assertCaptured "Be careful with custom Procfile"
assertCapturedSuccess
}

# Utils

pushd $(dirname 0) >/dev/null
Expand Down

0 comments on commit 8f0583a

Please sign in to comment.