2018-11-27 21:10:43 +03:00
|
|
|
Configuration ?= release
|
|
|
|
DotNetVersion = `cat DotnetCLIToolsVersion.txt`
|
2018-12-19 07:57:02 +03:00
|
|
|
DotNetToolPath = $(CURDIR)/artifacts/toolset/dotnet
|
|
|
|
DotNetExe = "$(DotNetToolPath)/dotnet"
|
2018-11-27 21:10:43 +03:00
|
|
|
|
|
|
|
all: proto restore build test
|
|
|
|
|
|
|
|
tools:
|
2018-12-19 07:57:02 +03:00
|
|
|
$(CURDIR)/scripts/dotnet-install.sh --version $(DotNetVersion) --install-dir "$(DotNetToolPath)"
|
2018-11-27 21:10:43 +03:00
|
|
|
|
2019-01-24 05:04:08 +03:00
|
|
|
proto: tools
|
2018-11-27 21:10:43 +03:00
|
|
|
$(DotNetExe) build-server shutdown
|
|
|
|
$(DotNetExe) restore src/buildtools/buildtools.proj
|
|
|
|
$(DotNetExe) restore src/fsharp/FSharp.Build/FSharp.Build.fsproj
|
2018-12-19 07:57:02 +03:00
|
|
|
$(DotNetExe) restore src/fsharp/fsc/fsc.fsproj
|
2018-11-27 21:10:43 +03:00
|
|
|
$(DotNetExe) build src/buildtools/buildtools.proj -c Proto
|
|
|
|
$(DotNetExe) build src/fsharp/FSharp.Build/FSharp.Build.fsproj -f netstandard2.0 -c Proto
|
2018-12-19 07:57:02 +03:00
|
|
|
$(DotNetExe) build src/fsharp/fsc/fsc.fsproj -f netcoreapp2.1 -c Proto
|
2018-11-27 21:10:43 +03:00
|
|
|
|
2019-01-24 05:04:08 +03:00
|
|
|
restore:
|
2018-11-27 21:10:43 +03:00
|
|
|
$(DotNetExe) restore src/fsharp/FSharp.Core/FSharp.Core.fsproj
|
|
|
|
$(DotNetExe) restore src/fsharp/FSharp.Build/FSharp.Build.fsproj
|
|
|
|
$(DotNetExe) restore src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj
|
2018-12-19 07:57:02 +03:00
|
|
|
$(DotNetExe) restore src/fsharp/fsc/fsc.fsproj
|
2018-11-27 21:10:43 +03:00
|
|
|
$(DotNetExe) restore src/fsharp/FSharp.Compiler.Interactive.Settings/FSharp.Compiler.Interactive.Settings.fsproj
|
2018-12-19 07:57:02 +03:00
|
|
|
$(DotNetExe) restore src/fsharp/fsi/fsi.fsproj
|
2018-11-27 21:10:43 +03:00
|
|
|
$(DotNetExe) restore tests/FSharp.Core.UnitTests/FSharp.Core.UnitTests.fsproj
|
|
|
|
$(DotNetExe) restore tests/FSharp.Build.UnitTests/FSharp.Build.UnitTests.fsproj
|
|
|
|
|
|
|
|
build: proto restore
|
|
|
|
$(DotNetExe) build-server shutdown
|
2019-05-25 22:40:29 +03:00
|
|
|
$(DotNetExe) build -c $(Configuration) -f netstandard2.0 src/fsharp/FSharp.Core/FSharp.Core.fsproj
|
2018-11-27 21:10:43 +03:00
|
|
|
$(DotNetExe) build -c $(Configuration) -f netstandard2.0 src/fsharp/FSharp.Build/FSharp.Build.fsproj
|
2019-03-12 02:10:17 +03:00
|
|
|
$(DotNetExe) build -c $(Configuration) -f netstandard2.0 src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj
|
2018-12-19 07:57:02 +03:00
|
|
|
$(DotNetExe) build -c $(Configuration) -f netcoreapp2.1 src/fsharp/fsc/fsc.fsproj
|
2019-03-12 02:10:17 +03:00
|
|
|
$(DotNetExe) build -c $(Configuration) -f netstandard2.0 src/fsharp/FSharp.Compiler.Interactive.Settings/FSharp.Compiler.Interactive.Settings.fsproj
|
2018-12-22 01:34:10 +03:00
|
|
|
$(DotNetExe) build -c $(Configuration) -f netcoreapp2.1 src/fsharp/fsi/fsi.fsproj
|
2018-11-27 21:10:43 +03:00
|
|
|
$(DotNetExe) build -c $(Configuration) -f netcoreapp2.0 tests/FSharp.Core.UnitTests/FSharp.Core.UnitTests.fsproj
|
|
|
|
$(DotNetExe) build -c $(Configuration) -f netcoreapp2.0 tests/FSharp.Build.UnitTests/FSharp.Build.UnitTests.fsproj
|
|
|
|
|
|
|
|
test: build
|
2019-02-22 02:37:40 +03:00
|
|
|
$(DotNetExe) test -f netcoreapp2.0 -c $(Configuration) --no-restore --no-build tests/FSharp.Core.UnitTests/FSharp.Core.UnitTests.fsproj -l "trx;LogFileName=$(CURDIR)/tests/TestResults/FSharp.Core.UnitTests.coreclr.trx"
|
|
|
|
$(DotNetExe) test -f netcoreapp2.0 -c $(Configuration) --no-restore --no-build tests/FSharp.Build.UnitTests/FSharp.Build.UnitTests.fsproj -l "trx;LogFileName=$(CURDIR)/tests/TestResults/FSharp.Build.UnitTests.coreclr.trx"
|
2018-11-27 21:10:43 +03:00
|
|
|
|
|
|
|
clean:
|
2018-12-19 07:57:02 +03:00
|
|
|
rm -rf $(CURDIR)/artifacts
|