From: Jean-Philippe Bruyère Date: Sun, 26 Jan 2020 03:19:11 +0000 (+0100) Subject: update travis and appveyor CI's X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=d6200711ae7416e0dc2a112252dd905b929db7ae;p=jp%2Fcrow.git update travis and appveyor CI's --- diff --git a/.travis.yml b/.travis.yml index 9963d318..0a45645c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,12 @@ -sudo: required -dist: trusty + language: csharp -solution: Crow.sln -before_install: - - sudo apt-get -qq update - - sudo apt-get install -y libcairo1.10-cil libgio3.0-cil libgdk3.0-cil libglib3.0-cil -install: - - nuget restore Crow.sln -script: - - xbuild /p:Configuration=Release Crow.sln +dist: xenial + +dotnet: 3.1 + +env: + - FrameworkPathOverride=/usr/lib/mono/4.5/ + +script: + - dotnet build /p:Configuration=Release \ No newline at end of file diff --git a/Crow.sln b/Crow.sln index b8997182..df89d910 100644 --- a/Crow.sln +++ b/Crow.sln @@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ControlLib", "Samples\Contr EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CrowIDE", "CrowIDE\CrowIDE.csproj", "{1E5C7065-28F9-4A1A-A2FB-DB5E03A63CB3}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "unitTests", "unitTests\unitTests.csproj", "{0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -35,6 +37,8 @@ Global {91F1CE07-EECE-4F1D-A3EE-7239B563654A}.Release|Any CPU.ActiveCfg = Release|Any CPU {1E5C7065-28F9-4A1A-A2FB-DB5E03A63CB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {1E5C7065-28F9-4A1A-A2FB-DB5E03A63CB3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}.Release|Any CPU.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(MonoDevelopProperties) = preSolution Policies = $0 diff --git a/Crow/Crow.csproj b/Crow/Crow.csproj index 7f92e6e7..55608eb9 100644 --- a/Crow/Crow.csproj +++ b/Crow/Crow.csproj @@ -2,31 +2,39 @@ netstandard2.0 - Crow - - - 0.8.7 - C.R.O.W. is a widget toolkit and rendering engine entirely developed in C# with templates, styles, compositing, and bindings. - false - false + + 0.8.0 + $(ReleaseVersion) + C# Rapid Open Widget Toolkit + C.R.O.W. is a widget toolkit and rendering engine developed in C# with templates, styles, compositing, and bindings. MIT - Crow + Jean-Philippe Bruyère + + https://github.com/jpbruyere/Crow + GUI Widget toolkit Interface C# .Net Mono $(AssemblyVersion)-beta True - false + true + False https://github.com/jpbruyere/Crow/wiki https://opensource.org/licenses/MIT https://jpbruyere.github.io/Crow/images/crow.png Copyright 2013-2019 - - DESIGN_MODE - 0.8.0 + + + + DESIGN_MODE + + false + false + + full - _DEBUG_DISPOSE;TRACE;_DEBUG_BINDING;DESIGN_MODE;_DEBUG_CLIP_RECTANGLE;_DEBUG_FOCUS;_DEBUG_DRAGNDROP;NET471;NET461;NETFRAMEWORK;NET472;DEBUG;NETSTANDARD;NETSTANDARD2_0 + DEBUG;TRACE;_DEBUG_DISPOSE;_DEBUG_BINDING;DESIGN_MODE;_DEBUG_CLIP_RECTANGLE;_DEBUG_FOCUS;_DEBUG_DRAGNDROP true @@ -34,17 +42,11 @@ - + Crow.%(Filename).template - - - - - - \ No newline at end of file diff --git a/README.md b/README.md index e66c6135..78bddc22 100644 --- a/README.md +++ b/README.md @@ -8,22 +8,22 @@ C# Rapid Open Widgets

- - - - - - - + - + + + + + + +

-**C.R.O.W.** is an [application framework](https://en.wikipedia.org/wiki/Application_framework) for building portable graphical interfaces entirely developed in **C#**. It provides a declarative interface language with **styling** and **templates** called [IML](interface-markup-language) for **Interface Markup Language** similar to [XAML](https://en.wikipedia.org/wiki/Extensible_Application_Markup_Language) and a binding system for easy code linking. +**C.R.O.W.** is an open source [application framework](https://en.wikipedia.org/wiki/Application_framework) for building portable graphical interfaces in **C#**. It provides a declarative interface language with **styling** and **templates** called [IML](interface-markup-language) for **Interface Markup Language** similar to [XAML](https://en.wikipedia.org/wiki/Extensible_Application_Markup_Language) and a binding system for easy code linking. C.R.O.W. is in **beta** development state, api could change. diff --git a/appveyor.yml b/appveyor.yml index 42519fab..df39db15 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,22 +1,28 @@ -version: 0.4.{build} +version: 0.8.{build} -branches: - only: - - master - -clone_depth: 1 - -before_build: -- cmd: nuget restore Crow.sln - -build_script: - - set path=%path%;C:\Program Files (x86)\Mono\bin - - xbuild /p:Configuration=Release Crow.sln - -#build: off +image: + - Visual Studio 2019 + - Ubuntu build: - -# project: Crow.sln - - verbosity: normal + verbosity: minimal + +for: + - + matrix: + only: + - image: Visual Studio 2019 + environment: + APPVEYOR_SAVE_CACHE_ON_ERROR: true + build_script: + - msbuild /p:Configuration=Release /t:restore + - msbuild /p:Configuration=Release + + - + matrix: + only: + - image: Ubuntu + environment: + FrameworkPathOverride: /usr/lib/mono/4.5/ + build_script: + - dotnet build /p:Configuration=Release diff --git a/netfx.props b/netfx.props deleted file mode 100644 index 25fdbe09..00000000 --- a/netfx.props +++ /dev/null @@ -1,27 +0,0 @@ - - - - - true - - - /Library/Frameworks/Mono.framework/Versions/Current/lib/mono - /usr/lib/mono - /usr/local/lib/mono - - - $(BaseFrameworkPathOverrideForMono)/4.5-api - $(BaseFrameworkPathOverrideForMono)/4.5.1-api - $(BaseFrameworkPathOverrideForMono)/4.5.2-api - $(BaseFrameworkPathOverrideForMono)/4.6-api - $(BaseFrameworkPathOverrideForMono)/4.6.1-api - $(BaseFrameworkPathOverrideForMono)/4.6.2-api - $(BaseFrameworkPathOverrideForMono)/4.7-api - $(BaseFrameworkPathOverrideForMono)/4.7.1-api - true - - - $(FrameworkPathOverride)/Facades;$(AssemblySearchPaths) - - - diff --git a/unitTests/Program.cs b/unitTests/Program.cs new file mode 100644 index 00000000..8fad7994 --- /dev/null +++ b/unitTests/Program.cs @@ -0,0 +1,27 @@ +using System; +using Crow; +using Crow.IML; +using NUnit.Framework; + +namespace unitTests +{ + [TestFixture] + public class Tests + { + + + void instanciate () + { + Instantiator.CreateFromImlFragment (null, @""); + } + + + + [Test] + public void InstanciatorTest () + { + Assert.DoesNotThrow (instanciate, "test itor failed"); + } + + } +} diff --git a/unitTests/unitTests.csproj b/unitTests/unitTests.csproj new file mode 100644 index 00000000..6e4b527c --- /dev/null +++ b/unitTests/unitTests.csproj @@ -0,0 +1,12 @@ + + + net472 + 0.8.0 + + + + + + + +