From 8bad45639480e1d33ed1c9b325c7132d63ea41ee Mon Sep 17 00:00:00 2001 From: Henk Mollema Date: Sun, 23 Aug 2020 11:47:39 +0200 Subject: [PATCH] Update build scripts (#121) --- .appveyor.yml | 15 ++++----------- .travis.yml | 18 +++++------------- LICENSE | 2 +- README.md | 8 ++++---- build.cmd | 2 -- build.ps1 | 2 -- build.sh | 4 ---- .../Dapper.FluentMap.Dommel.csproj | 2 +- src/Dapper.FluentMap/Dapper.FluentMap.csproj | 2 +- 9 files changed, 16 insertions(+), 39 deletions(-) delete mode 100644 build.cmd delete mode 100644 build.ps1 delete mode 100755 build.sh diff --git a/.appveyor.yml b/.appveyor.yml index ec73032..ae9c981 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,18 +1,11 @@ version: '{build}' pull_requests: do_not_increment_build_number: true -image: Visual Studio 2017 -init: - - git config --global core.autocrlf true +image: Visual Studio 2019 build_script: - - ps: .\build.ps1 -clone_depth: 1 + - cmd: dotnet test test: off -deploy: off environment: DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - CI: true -branches: - only: - - master \ No newline at end of file + DOTNET_CLI_TELEMETRY_OPTOUT: true + CI: true diff --git a/.travis.yml b/.travis.yml index f4d57f5..eca4083 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,10 @@ language: csharp mono: none -dotnet: 2.1.403 -dist: trusty +dotnet: 3.1 +dist: xenial env: global: - - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true - - DOTNET_CLI_TELEMETRY_OPTOUT: true -os: - - linux - - osx -branches: - only: - - master -before_script: - - chmod +x ./build.sh + - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true + - DOTNET_CLI_TELEMETRY_OPTOUT=true script: - - ./build.sh \ No newline at end of file + - dotnet test diff --git a/LICENSE b/LICENSE index 7f57282..8a7361b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 Henk Mollema +Copyright (c) 2014 Henk Mollema Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 59486e9..6719133 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# Dapper.FluentMap -Provides a simple API to fluently map POCO properties to database columns when using Dapper. +# Dapper.FluentMap +Provides a simple API to fluently map POCO properties to database columns when using Dapper.
@@ -29,7 +29,7 @@ public class ProductMap : EntityMap // Map property 'Name' to column 'strName'. Map(p => p.Name) .ToColumn("strName"); - + // Ignore the 'LastModified' property when mapping. Map(p => p.LastModified) .Ignore(); @@ -124,7 +124,7 @@ public class ProductMap : DommelEntityMap public ProductMap() { ToTable("tblProduct"); - + // ... } } diff --git a/build.cmd b/build.cmd deleted file mode 100644 index 7d4894c..0000000 --- a/build.cmd +++ /dev/null @@ -1,2 +0,0 @@ -@ECHO OFF -PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0build.ps1' %*; exit $LASTEXITCODE" \ No newline at end of file diff --git a/build.ps1 b/build.ps1 deleted file mode 100644 index 5588d77..0000000 --- a/build.ps1 +++ /dev/null @@ -1,2 +0,0 @@ -dotnet build -dotnet test .\test\Dapper.FluentMap.Tests\Dapper.FluentMap.Tests.csproj diff --git a/build.sh b/build.sh deleted file mode 100755 index 46b5c91..0000000 --- a/build.sh +++ /dev/null @@ -1,4 +0,0 @@ -dotnet restore -dotnet build ./src/Dapper.FluentMap/Dapper.FluentMap.csproj -f netstandard2.0 -dotnet build ./src/Dapper.FluentMap.Dommel/Dapper.FluentMap.Dommel.csproj -f netstandard2.0 -dotnet test ./test/Dapper.FluentMap.Tests/Dapper.FluentMap.Tests.csproj diff --git a/src/Dapper.FluentMap.Dommel/Dapper.FluentMap.Dommel.csproj b/src/Dapper.FluentMap.Dommel/Dapper.FluentMap.Dommel.csproj index f4621e2..65bc63c 100644 --- a/src/Dapper.FluentMap.Dommel/Dapper.FluentMap.Dommel.csproj +++ b/src/Dapper.FluentMap.Dommel/Dapper.FluentMap.Dommel.csproj @@ -1,7 +1,7 @@  Dapper.FluentMap extension for Dommel support. - Copyright © Henk Mollema 2017 + Copyright © Henk Mollema 2014 2.0.0 Henk Mollema netstandard2.0 diff --git a/src/Dapper.FluentMap/Dapper.FluentMap.csproj b/src/Dapper.FluentMap/Dapper.FluentMap.csproj index afddd6e..c277c3a 100644 --- a/src/Dapper.FluentMap/Dapper.FluentMap.csproj +++ b/src/Dapper.FluentMap/Dapper.FluentMap.csproj @@ -1,7 +1,7 @@  Simple API to fluently map POCO properties to database columns when using Dapper. - Copyright © Henk Mollema 2017 + Copyright © Henk Mollema 2014 2.0.0 Henk Mollema netstandard2.0