codeowners update
[mono.git] / acceptance-tests / roslyn.mk
1 check-roslyn:
2         @$(MAKE) validate-roslyn RESET_VERSIONS=1
3         @if [ -z $$PREFIX ]; then echo "You need to set PREFIX to the prefix of the Mono installation that should be used for testing Roslyn." && exit 1; fi
4         sed -i -e 's/\\4.5-api"/\\4.5"/g' $$PREFIX/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml; \
5         export MSBuildExtensionsPath=$$PREFIX/lib/mono/xbuild; \
6         MONO_DOTNET_PORTABLE_DIR=$$PREFIX/lib/mono/xbuild-frameworks/.NETPortable/; \
7         if [ ! -d "$$MONO_DOTNET_PORTABLE_DIR/v4.6" ]; then \
8                 mkdir -p $$MONO_DOTNET_PORTABLE_DIR; \
9                 curl -SL "http://download.mono-project.com/third-party/RoslynBuildDependencies.zip" > /tmp/RoslynBuildDependencies.zip; \
10                 unzip -o /tmp/RoslynBuildDependencies.zip -d /tmp/RoslynBuildDependencies; \
11                 cp -r /tmp/RoslynBuildDependencies/PortableReferenceAssemblies/* $$MONO_DOTNET_PORTABLE_DIR; \
12         fi; \
13         cd $(ROSLYN_PATH); \
14         sed -i -e 'N; s/bootstrapArg=".*\n.*"/bootstrapArg=""/g' cibuild.sh; \
15         sed -i -e 's#-xml Binaries/\$$BUILD_CONFIGURATION/xUnitResults/#-nunit $(abs_top_builddir)/acceptance-tests/TestResult-#g' cibuild.sh; \
16         ./cibuild.sh --mono-path $$PREFIX/bin || EXIT_CODE=1; \
17         sed -i -e 's/\\4.5"/\\4.5-api"/g' $$PREFIX/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml; \
18         exit $$EXIT_CODE