Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for netstandard1.6 and .NET Core #101

Merged
merged 47 commits into from
Feb 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
1891b5d
Expect.equal netstandard compatible
adamchester Feb 19, 2017
1e6d346
Travis build
adamchester Feb 19, 2017
4d20429
AppVeyor build
adamchester Feb 19, 2017
c85ae6d
Fix global.json for rc4-004771
adamchester Feb 19, 2017
958fe8a
fsproj for rc4-004771
adamchester Feb 19, 2017
0370de5
Stop running FAKE build steps on CI
adamchester Feb 19, 2017
283aa71
Compile Expecto.netcore via Rake build
adamchester Feb 19, 2017
3122e82
Add a comment about travis dotnet support
adamchester Feb 19, 2017
6584664
Reduce netcore errors with #if NETSTANDARD1_6
adamchester Feb 19, 2017
72d6411
Fixup travis file encoding
adamchester Feb 19, 2017
5d52316
Introduce `RESHAPED_REFLECTION`,
adamchester Feb 20, 2017
6e176aa
More fixes
adamchester Feb 20, 2017
f3930ef
Upgrade Mono.Cecil, fix build errors
adamchester Feb 21, 2017
7014fe7
create_nugets_dotnetcli, verbose build
adamchester Feb 23, 2017
35233e7
Undo UTF8 BOM file encoding
adamchester Feb 24, 2017
9b1b7a3
Undo test start argument changes
adamchester Feb 24, 2017
102d34f
Enable detecting console UTF-8 again
adamchester Feb 24, 2017
d763e20
Remove intellisense hack,
adamchester Feb 24, 2017
ce2bee9
5.0.0-beta / Target >= net45
adamchester Feb 25, 2017
95258b3
Thanks to >=net45, less reflection madness
adamchester Feb 25, 2017
2169ced
Travis matrix: mono 4.6.1|latest
adamchester Feb 25, 2017
8f55a7e
Travis: mono 4.8.0 and weekly
adamchester Feb 25, 2017
69cd5f1
Merge remote-tracking branch 'upstream/master' into netcore-rc4
adamchester Feb 25, 2017
50e7e03
Travis: fixed mono allow_failures
adamchester Feb 25, 2017
faeef2a
Improve diff & fsproj encoding
adamchester Feb 25, 2017
e4bbf2c
Run tests on netcore during build
adamchester Feb 26, 2017
4c5da2c
restore before test
adamchester Feb 26, 2017
8d4aefb
restore before tests
adamchester Feb 26, 2017
4c1c280
proj
adamchester Feb 26, 2017
5165571
locate fscheck with nuget.config
adamchester Feb 26, 2017
34883c6
Fix fsproj encoding
adamchester Feb 26, 2017
cc5159f
Fix reflection tests
adamchester Feb 26, 2017
b3c184f
VSCode build/test integration
adamchester Feb 26, 2017
fe77792
file encoding (again)
adamchester Feb 26, 2017
8bd3c2b
Remove FSharpx
adamchester Feb 27, 2017
48c1f4e
Put back nuget.commandline
adamchester Feb 27, 2017
639de38
nuget command line
adamchester Feb 27, 2017
e084eb2
Add ulimit hack for osx restore
adamchester Feb 27, 2017
ec02d07
increase ulimit
adamchester Feb 27, 2017
e5094f1
Improved ulimit comment
adamchester Feb 27, 2017
aa9b3b8
fix logary hash
cloudRoutine Feb 27, 2017
51c1f7f
Merge pull request #1 from cloudRoutine/netcore
adamchester Feb 27, 2017
238cf96
dependency update
cloudRoutine Feb 27, 2017
3432af9
only build automatically, don't run tests
cloudRoutine Feb 27, 2017
c9612cc
Merge pull request #2 from cloudRoutine/netcore
adamchester Feb 27, 2017
18a35a3
generate AssemblyVersionInfo
cloudRoutine Feb 27, 2017
c233b74
Merge pull request #3 from cloudRoutine/netcore
adamchester Feb 27, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 35 additions & 5 deletions .paket/Paket.Restore.targets
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Mark that this target file has been loaded. -->
<IsPaketRestoreTargetsFileLoaded>true</IsPaketRestoreTargetsFileLoaded>
</PropertyGroup>

<IsPaketRestoreTargetsFileLoaded>true</IsPaketRestoreTargetsFileLoaded>
<PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath>
<MonoPath Condition="'$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')">/Library/Frameworks/Mono.framework/Commands/mono</MonoPath>
<MonoPath Condition="'$(MonoPath)' == ''">mono</MonoPath>
<!-- Paket command -->
<PaketExePath Condition=" '$(PaketExePath)' == '' AND Exists('$(PaketRootPath)paket.exe')">$(PaketRootPath)paket.exe</PaketExePath>
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath>
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand>
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand>
</PropertyGroup>

<UsingTask TaskName="Paket.Build.Tasks.PaketRestoreTask" AssemblyFile="PaketRestoreTask.dll" />

<Target Name="PaketRestore" BeforeTargets="_GenerateRestoreGraphWalkPerFramework" >
<Exec Command="$(MSBuildThisFileDirectory)\paket.exe restore --project $(MSBuildProjectFullPath)" />
<Exec Command="$(PaketCommand) restore --project $(MSBuildProjectFullPath)" />

<!-- Write out package references for NETCore -->
<PaketRestoreTask
Expand All @@ -18,4 +26,26 @@
<Output TaskParameter="AlternativeConfigFile" ItemName="RestoreConfigFile" />
</PaketRestoreTask>
</Target>
</Project>

<Target Name="FixPackRef" AfterTargets="_WalkEachTargetPerFramework" Returns="@(_PackageReferences)">
<!-- Write out package references for NETCore -->
<PaketRestoreTask
ProjectUniqueName="$(MSBuildProjectFullPath)"
PackageReferences="@(PackageReference)"
TargetFrameworks="$(TargetFramework)">
<Output TaskParameter="NewPackageReferences" ItemName="_PaketPackageReference" />
<Output TaskParameter="AlternativeConfigFile" ItemName="RestoreConfigFile2" />
</PaketRestoreTask>
<ItemGroup>
<_PackageReferences Include="%(_PaketPackageReference.Identity)">
<TargetFramework>$(TargetFramework)</TargetFramework>
<IncludeAssets></IncludeAssets>
<ExcludeAssets></ExcludeAssets>
<PrivateAssets></PrivateAssets>
<Version>%(_PaketPackageReference.Version)</Version>
</_PackageReferences>
</ItemGroup>

</Target>

</Project>
6 changes: 3 additions & 3 deletions .semver
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
:major: 4
:major: 5
:minor: 0
:patch: 3
:special: ''
:patch: 0
:special: 'beta'
:metadata: ''
35 changes: 28 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,41 @@
language: csharp

mono:
- 4.6.1
- 4.8.0
- latest # => "stable release"
- weekly # => "latest commits"
- 4.6.1
- 4.8.0
- weekly # => "stable release"
- latest # => "latest commits"

os:
- osx
- linux

dist: trusty
sudo: required

dotnet: 1.0.0-preview2-003121

env:
- CLI_VERSION=1.0.0-rc4-004771


install:
- rvm install 2.2.3
- gem install bundler
- sudo apt-get update -y
# See details at https://github.com/NuGet/Home/issues/2163
# this may be required because of an underlying bug in mono. It may
# also be induced by us because we have an extra nuget.config source.
- ulimit -n 2048

- rvm install 2.2.3
- gem install bundler
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
- curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR"
- export PATH="$DOTNET_INSTALL_DIR:$PATH"

script:
- bundle && bundle exec rake

matrix:
fast_finish: true # just fail immediately if at least one job fails
allow_failures:
- mono: latest
- mono: weekly
20 changes: 14 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@
"version": "0.2.0",
"configurations": [
{
"name": "Debug Sample",
"type": "mono",
"name": ".NET Core Debug Tests",
"type": "coreclr",
"request": "launch",
"program": "${workspaceRoot}/Expecto.Sample/bin/Debug/Expecto.Sample.exe",
"args": ["--debug"],
"preLaunchTask": "build_netcore_tests",
"program": "${workspaceRoot}/Expecto.netcore.Tests/bin/Debug/netcoreapp1.1/Expecto.netcore.Tests.dll",
"args": [
"--debug", "--sequenced"
],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"env": {},
"stopAtEntry": false,
"externalConsole": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command.pickProcess}"
}
]
}
45 changes: 37 additions & 8 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,47 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "bundle",
"isShellCommand": true,
"args": [],
"showOutput": "always",
"tasks": [
"tasks": [
{
"taskName": "compile",
"taskName": "build",
"echoCommand": true,
"command": "bundle",
"isBuildCommand": true,
"problemMatcher": "$msCompile",
"args": [
"exec",
"rake"
"exec", "rake",
"Configuration=Debug",
"quick_compile",
"quick_compile_netcore"
]
},
{
"taskName": "build_netcore_tests",
"command": "dotnet",
"echoCommand": true,
"args": [
"build",
"-c", "Debug",
"Expecto.netcore.Tests/Expecto.netcore.Tests.fsproj"
],
"showOutput": "silent",
"problemMatcher": "$msCompile"
},
{
"taskName": "run_netcore_tests",
"echoCommand": true,
"command": "dotnet",
"args": [
"run",
"-c", "Debug",
"--project", "Expecto.netcore.Tests/Expecto.netcore.Tests.fsproj",
"--sequenced",
"--debug"
],
"isBuildCommand": true
"showOutput": "silent",
"isTestCommand": true,
"problemMatcher": "$msCompile"
}
]
}
Loading