CI: build hello world straight-from-solution before then building it with codegen

This commit is contained in:
Ryan Newton 2018-12-12 00:47:47 -08:00
Родитель 3e79f895fe
Коммит 3ed1f72d00
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -26,6 +26,9 @@ function check_az_storage_and_bail() {
fi
}
FMWK="${AMBROSIA_DOTNET_FRAMEWORK:-netcoreapp2.0}"
CONF="${AMBROSIA_DOTNET_CONF:-Release}"
case $mode in
docker)
@ -61,6 +64,11 @@ case $mode in
# Build Application 2: Hello World Sample
# ----------------------------------------
cd "$AMBROSIA_ROOT"/Samples/HelloWorld
# First make sure a straight-to-the-solution build works:
dotnet publish -c $CONF -f $FMWK HelloWorld.sln
# Then make sure it builds from scratch:
rm -rf GeneratedSourceFiles
git clean -nxd .
./build_dotnetcore.sh
# ----------------------------------------