Skip to content

Commit 3b5c809

Browse files
committed
add ci
1 parent 31ebb3a commit 3b5c809

6 files changed

Lines changed: 69 additions & 53 deletions

File tree

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: csharp
2+
solution: cloudscribe.Web.Localization.sln
3+
sudo: false
4+
dist: trusty
5+
mono: none
6+
dotnet: 1.0.4
7+
env:
8+
global:
9+
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
10+
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
11+
os:
12+
- linux
13+
- osx
14+
osx_image: xcode8.3
15+
script:
16+
- if test "$TRAVIS_OS_NAME" == "linux"; then dotnet restore; fi
17+
- if test "$TRAVIS_OS_NAME" == "osx"; then dotnet restore --disable-parallel; fi
18+
- dotnet build -c Release

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
I developed this project to meet my localization goals for [cloudscribe.Core](https://github.com/joeaudette/cloudscribe) and [cloudscribe.SimpleContent](https://github.com/joeaudette/cloudscribe.SimpleContent). However it has no dependencies on other cloudscribe components and can be used by anyone who wants the provided functionality. Get the big picture on cloudscribe projects at [cloudscribe.com](https://www.cloudscribe.com)
44

5+
### Build Status
6+
7+
| Windows | Linux/Mac |
8+
| ------------- | ------------- |
9+
| [![Build status](https://ci.appveyor.com/api/projects/status/pmjr831lvwposn5w?svg=true)](https://ci.appveyor.com/project/joeaudette/cloudscribe-web-localization) | [![Build Status](https://travis-ci.org/joeaudette/cloudscribe.Web.Localization.svg?branch=master)](https://travis-ci.org/joeaudette/cloudscribe.Web.Localization) |
10+
511
## Rationale
612

713
My vision for composing web applications is to build separate components for each feature or purpose in separate class library projects, packaged as nugets that one can bring into their main web application to add functionality. The main web application may or may not have its own features that it implements, but much or most of the functionality will come from class library projects that are pulled in as nuget dependencies.

appveyor.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
image: Visual Studio 2017
2+
environment:
3+
nodejs_version: "6.9.1"
4+
# Install scripts. (runs after repo cloning)
5+
install:
6+
# Get the latest stable version of Node.js or io.js
7+
- ps: Install-Product node $env:nodejs_version
8+
- ps: $env:BuildNumber= $env:APPVEYOR_BUILD_NUMBER
9+
init:
10+
- git config --global core.autocrlf true
11+
build_script:
12+
- dotnet restore
13+
- dotnet build -c Release
14+
test: off
15+
16+
17+

src/WebLib/WebLib.csproj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<TargetFramework>netstandard1.6</TargetFramework>
55
<AssemblyName>WebLib</AssemblyName>
66
<PackageId>WebLib</PackageId>
7-
<NetStandardImplicitPackageVersion>1.6.1</NetStandardImplicitPackageVersion>
8-
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
97
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
108
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
119
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
@@ -16,10 +14,10 @@
1614
</ItemGroup>
1715

1816
<ItemGroup>
19-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor" Version="1.1.2" />
20-
<PackageReference Include="Microsoft.AspNetCore.Mvc.ViewFeatures" Version="1.1.2" />
17+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor" Version="1.1.*" />
18+
<PackageReference Include="Microsoft.AspNetCore.Mvc.ViewFeatures" Version="1.1.*" />
2119
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="1.1.*" />
22-
<PackageReference Include="Microsoft.Extensions.Localization.Abstractions" Version="1.1.1" />
20+
<PackageReference Include="Microsoft.Extensions.Localization.Abstractions" Version="1.1.*" />
2321
</ItemGroup>
2422

2523
</Project>

src/cloudscribe.Web.Localization/cloudscribe.Web.Localization.csproj

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,24 @@
22

33
<PropertyGroup>
44
<Description>more flexible localization for ASP.NET Core</Description>
5-
<VersionPrefix>1.2.0</VersionPrefix>
5+
<VersionPrefix>1.2.1</VersionPrefix>
66
<Authors>Joe Audette</Authors>
7-
<TargetFrameworks>net46;net451;net452;netstandard1.6</TargetFrameworks>
7+
<TargetFrameworks>netstandard1.6</TargetFrameworks>
88
<AssemblyName>cloudscribe.Web.Localization</AssemblyName>
99
<PackageId>cloudscribe.Web.Localization</PackageId>
1010
<PackageTags>cloudscribe;localization;resx</PackageTags>
1111
<PackageIconUrl>https://raw.githubusercontent.com/joeaudette/cloudscribe/master/cloudscribe-icon-32.png</PackageIconUrl>
1212
<PackageProjectUrl>https://github.com/joeaudette/cloudscribe.Web.Localization</PackageProjectUrl>
1313
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
14-
<NetStandardImplicitPackageVersion>1.6.1</NetStandardImplicitPackageVersion>
15-
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netstandard1.6' ">$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
1614
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
1715
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
1816
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
1917
</PropertyGroup>
2018

2119
<ItemGroup>
22-
<PackageReference Include="Microsoft.Extensions.Localization" Version="1.1.1" />
23-
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.1.1" />
20+
<PackageReference Include="Microsoft.Extensions.Localization" Version="1.1.*" />
21+
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.1.*" />
2422
</ItemGroup>
2523

26-
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
27-
<Reference Include="System" />
28-
<Reference Include="Microsoft.CSharp" />
29-
</ItemGroup>
30-
31-
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
32-
<Reference Include="System" />
33-
<Reference Include="Microsoft.CSharp" />
34-
</ItemGroup>
35-
36-
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">
37-
<Reference Include="System" />
38-
<Reference Include="Microsoft.CSharp" />
39-
</ItemGroup>
4024

4125
</Project>

src/localization.WebApp/localization.WebApp.csproj

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
<OutputType>Exe</OutputType>
88
<PackageId>localization.WebApp</PackageId>
99
<UserSecretsId>aspnet-localization.WebApp-940cc8f9-71c6-4716-a22f-dac5c78eb805</UserSecretsId>
10-
<RuntimeFrameworkVersion>1.1.1</RuntimeFrameworkVersion>
11-
<PackageTargetFallback>$(PackageTargetFallback);dotnet5.6;portable-net45+win8</PackageTargetFallback>
1210
</PropertyGroup>
1311

1412
<ItemGroup>
@@ -23,36 +21,31 @@
2321
</ItemGroup>
2422

2523
<ItemGroup>
26-
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="1.1.1" />
27-
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.1.1" />
28-
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="1.1.1" />
29-
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="1.1.1" />
30-
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
31-
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.1" />
32-
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.1" />
33-
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.1" />
34-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.1" />
35-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.1" />
36-
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.1.1" />
37-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.1" />
38-
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="1.1.1" />
39-
<PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.1" />
40-
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.1" />
41-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" />
42-
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.0" />
43-
<PackageReference Include="Microsoft.Extensions.Localization.Abstractions" Version="1.1.1" />
44-
<PackageReference Include="Microsoft.Extensions.Options" Version="1.1.1" />
24+
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="1.1.*" />
25+
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.1.*" />
26+
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="1.1.*" />
27+
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="1.1.*" />
28+
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.*" />
29+
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.*" />
30+
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.*" />
31+
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.*" />
32+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.*" />
33+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.*" />
34+
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.1.*" />
35+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.*" />
36+
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="1.1.*" />
37+
<PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.*" />
38+
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.*" />
39+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.*" />
40+
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.*" />
41+
<PackageReference Include="Microsoft.Extensions.Localization.Abstractions" Version="1.1.*" />
42+
<PackageReference Include="Microsoft.Extensions.Options" Version="1.1.*" />
4543
</ItemGroup>
4644

47-
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">
48-
<Exec Command="bower install" />
49-
<Exec Command="dotnet bundle" />
50-
</Target>
51-
5245
<ItemGroup>
5346
<DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.2.301" />
54-
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.0.0" />
55-
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0" />
47+
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.*" />
48+
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.*" />
5649
</ItemGroup>
5750

5851
</Project>

0 commit comments

Comments
 (0)