pascalabcnet/_RebuildReleaseAndRunTests.sh
Andrey Cherepanov 85d7ed6bd9 Exit build shell script on first subcommand failed
sh -e will cause the shell to exit immediately if a command exits with a
nonzero exit value.
2021-08-08 15:56:22 +03:00

25 lines
733 B
Bash
Executable file

#!/bin/sh -e
MONO_IOMAP=case msbuild /p:Configuration=release pabcnetc.sln
MONO_IOMAP=case msbuild /p:Configuration=release CodeCompletion/CodeCompletion.csproj
mono --aot bin/pabcnetc.exe
mono --aot bin/NETGenerator.dll
mono --aot bin/TreeConverter.dll
mono --aot bin/Compiler.dll
mono --aot bin/SyntaxTree.dll
mono --aot bin/SemanticTree.dll
mono --aot bin/PascalABCParser.dll
mono --aot bin/ParserTools.dll
mono --aot bin/CompilerTools.dll
mono --aot bin/OptimizerConversion.dll
mono --aot bin/Errors.dll
export MONO_IOMAP=all
cd ReleaseGenerators
mono ../bin/pabcnetc.exe RebuildStandartModulesMono.pas /rebuild
if [ $? -eq 0 ]; then
if [ $? -eq 0 ]; then
cd ../bin
mono TestRunner.exe
cd ..
fi
fi