Permalink
Browse files

reorg: Switched from Dice to DryIce, Preparation for Jenkins

  • Loading branch information...
MikeMitterer committed Mar 26, 2018
1 parent e35a1d7 commit c0190ee555a5ad9f77df0099d5a4f1137eac966c
Showing with 159 additions and 72 deletions.
  1. +33 −0 build.jenkins
  2. +42 −0 dart_test.yaml
  3. +7 −7 lib/mdlapplication.dart
  4. +1 −1 lib/mdlcomponents.dart
  5. +1 −1 lib/mdlcore.dart
  6. +1 −1 lib/mdldemo.dart
  7. +1 −1 lib/mdldialog.dart
  8. +2 −2 lib/mdldirective.dart
  9. +1 −1 lib/mdldnd.dart
  10. +1 −1 lib/mdlflux.dart
  11. +1 −1 lib/mdlform.dart
  12. +2 −2 lib/mdlformatter.dart
  13. +1 −1 lib/mdlmock.dart
  14. +3 −3 lib/mdltemplate.dart
  15. +1 −1 lib/src/core/MdlComponentHandler.dart
  16. +1 −1 pubspec.yaml
  17. +2 −2 test/unit/core/MdlComponent_test.dart
  18. +3 −3 test/unit/core/utils_test.dart
  19. +1 −1 test/unit/directive/components/Translate_test.dart
  20. +1 −1 test/unit/flux/ActionBus_test.dart
  21. +1 −1 test/unit/flux/Dispatcher_test.dart
  22. +1 −1 test/unit/flux/Emitter_test.dart
  23. +2 −2 test/unit/form/form_test.dart
  24. +1 −1 test/unit/formatter/Badge_test.dart
  25. +1 −1 test/unit/formatter/Button_test.dart
  26. +1 −1 test/unit/formatter/Checkbox_test.dart
  27. +1 −1 test/unit/formatter/Labelfield_test.dart
  28. +1 −1 test/unit/formatter/Radio_test.dart
  29. +1 −1 test/unit/formatter/Switch_test.dart
  30. +1 −1 test/unit/formatter/Textfield_test.dart
  31. +2 −2 test/unit/mock/Mock_test.dart
  32. +8 −8 test/unit/observable/ObservableProperty_test.dart
  33. +2 −2 test/unit/template/TemplateRenderer_test.dart
  34. +1 −1 test/unit/utils/observables_test.dart
  35. +1 −1 test/unit/utils/utils_test.dart
  36. +1 −1 test/visual/components/accordion_test.dart
  37. +1 −1 test/visual/components/button_test.dart
  38. +1 −1 test/visual/components/checkbox_test.dart
  39. +1 −1 test/visual/components/data-table_test.dart
  40. +1 −1 test/visual/components/icon_toggle_test.dart
  41. +1 −1 test/visual/components/labelfield_test.dart
  42. +1 −1 test/visual/components/layout_test.dart
  43. +1 −1 test/visual/components/menu_test.dart
  44. +1 −1 test/visual/components/progress_test.dart
  45. +1 −1 test/visual/components/radio_test.dart
  46. +10 −3 test/visual/core/componenthandler_test.dart
  47. +1 −1 test/visual/core/parent_test.dart
  48. +1 −1 test/visual/template/components/repeat_test.dart
  49. +6 −1 tool/grind.dart
@@ -0,0 +1,33 @@
pipeline {
agent {
label 'linux'
}
stages {
stage('Preparation') {
steps {
timeout(time: 15, unit: 'MINUTES') {
ansiColor('xterm') {
sh 'pub update'
sh 'pub global activate grinder'
}
}
}
}
stage('Analyze') {
steps {
ansiColor('xterm') {
sh 'grind analyze'
}
}
}
stage('Test') {
steps {
ansiColor('xterm') {
sh 'pub run test/unit'
sh 'pub run test/visual'
}
}
}
}
}
@@ -0,0 +1,42 @@
# Browser-Based project - Test chrome by default.
platforms: [ chrome ]
paths:
- test/unit
- test/visual
#define_platforms:
# # This identifier is used to select the platform with the --platform flag.
# chromium:
# # A human-friendly name for the platform.
# name: Chromium
#
# # The identifier for the platform that this is based on.
# extends: chrome
#
# # Settings for the new child platform.
# settings:
# executable:
# linux: chromium-browser
# mac_os: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
#
# # Funkt nicht: --headless
# # https://github.com/dart-lang/test/issues/730
# arguments: --window-position=5000,5000 --window-size=1,1 --disable-gpu
#
override_platforms:
chrome:
settings:
# Funkt nicht: --headless
# https://github.com/dart-lang/test/issues/730
arguments: --window-position=5000,5000 --window-size=1,1 --disable-gpu
on_os:
linux:
override_platforms:
chrome:
# The settings to override for this platform.
settings:
executable: chromium-browser
arguments: --window-position=1500,1000 --window-size=2,2 --disable-gpu
@@ -30,7 +30,7 @@ import 'dart:js';
import 'package:logging/logging.dart';
import 'package:validate/validate.dart';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import 'package:route_hierarchical/client.dart';
@@ -70,18 +70,18 @@ part "src/application/Utils.dart";
class MdlModule extends di.Module {
configure() {
register(MaterialApplication);
bind(MaterialApplication);
register(DomRenderer);
register(EventCompiler);
bind(DomRenderer);
bind(EventCompiler);
// Removed 2017.11.9 - because injection should'nt be necessary with ViewFactory
// More infos: [ViewFactory]
// register(ViewFactory);
register(RootScope);
bind(RootScope);
register(ActionBus).toType(ActionBusImpl);
register(DataStore).toType(FireOnlyDataStore);
bind(ActionBus).toType(ActionBusImpl);
bind(DataStore).toType(FireOnlyDataStore);
}
}
@@ -24,7 +24,7 @@ import 'dart:math' as Math;
import 'dart:async';
import 'package:logging/logging.dart';
import 'package:browser_detect/browser_detect.dart';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import 'package:validate/validate.dart';
import "package:mdl/mdlcore.dart";
@@ -30,7 +30,7 @@ import 'dart:js';
import 'package:logging/logging.dart';
import 'package:validate/validate.dart';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
export 'package:mdl/src/core/annotations.dart';
@@ -21,7 +21,7 @@ library mdldemo;
import 'dart:html' as dom;
import 'package:logging/logging.dart';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import "package:mdl/mdlcore.dart";
import "package:mdl/mdlcomponents.dart";
@@ -28,7 +28,7 @@ import 'package:intl/date_symbol_data_local.dart';
import 'package:logging/logging.dart';
import 'package:mustache/mustache.dart';
import 'package:validate/validate.dart';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import 'package:mdl/mdlcore.dart';
import 'package:mdl/mdlcomponents.dart';
@@ -28,7 +28,7 @@ import 'dart:collection';
import 'package:logging/logging.dart';
import 'package:validate/validate.dart';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import 'package:l10n/l10n.dart';
import 'package:mdl/mdlcore.dart';
@@ -55,7 +55,7 @@ part "src/directive/utils.dart";
class MdlDirectiveModule extends di.Module {
@override
configure() {
register(ModelObserverFactory);
bind(ModelObserverFactory);
}
}
final MdlDirectiveModule _directiveModule = new MdlDirectiveModule();
@@ -21,7 +21,7 @@ library mdldnd;
import 'dart:html' as dom;
import 'package:logging/logging.dart';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import 'package:validate/validate.dart';
import 'package:dnd/dnd.dart';
@@ -51,7 +51,7 @@ library mdlflux;
import 'dart:async';
import 'dart:convert';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import 'package:validate/validate.dart';
part "src/flux/interfaces.dart";
@@ -23,7 +23,7 @@ import 'dart:async';
import 'dart:html' as dom;
import 'package:logging/logging.dart';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import 'package:mdl/mdlcore.dart';
import 'package:mdl/mdlcomponents.dart';
@@ -22,7 +22,7 @@ library mdlformatter;
import 'dart:html' as dom;
import 'dart:collection';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import 'package:intl/intl.dart';
import 'package:logging/logging.dart';
import 'package:validate/validate.dart';
@@ -88,7 +88,7 @@ class Formatter {
/// Makes Formatter available in DI
class MdlFormatterModule extends di.Module {
configure() {
register(Formatter);
bind(Formatter);
}
}
final MdlFormatterModule _formatterModule = new MdlFormatterModule();
@@ -39,7 +39,7 @@ library mdlmock;
//import 'package:validate/validate.dart';
import 'dart:mirrors';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import 'package:mdl/mdlapplication.dart';
export 'package:mdl/mdlcore.dart' show mockComponentHandler;
@@ -28,7 +28,7 @@ import 'dart:async';
import 'package:logging/logging.dart';
import 'package:validate/validate.dart';
import 'package:mustache/mustache.dart';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
//import 'package:mdl/mustache.dart';
@@ -50,8 +50,8 @@ part "src/template/modules/ListRenderer.dart";
class MdlTemplateModule extends di.Module {
configure() {
register(TemplateRenderer);
register(ListRenderer);
bind(TemplateRenderer);
bind(ListRenderer);
}
}
final MdlTemplateModule _templateModule = new MdlTemplateModule();
@@ -33,7 +33,7 @@ class _ApplicationModule extends di.Module {
@override
configure() {
register(MaterialApplication).toType(_rootContext).asSingleton();
bind(MaterialApplication).toType(_rootContext).asSingleton();
}
}
@@ -24,7 +24,7 @@ dependencies:
dnd: ^0.3.0
dice: ^1.7.0
dryice: ^1.8.0
# path: /Volumes/Daten/DevLocal/DevDart/dice
barback: ^0.15.0
@@ -1,10 +1,10 @@
@TestOn("content-shell")
@TestOn("chrome")
library test.unit.core.mdlcomponent;
import 'dart:async';
import 'dart:html' as dom;
import 'package:test/test.dart';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import 'package:mdl/mdl.dart';
import 'package:mdl/mdlmock.dart' as mdlmock;
@@ -17,20 +17,20 @@
* limitations under the License.
*/
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import 'dart:html' as dom;
import "package:mdl/mdl.dart";
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import '../config.dart';
class MdlTestModule extends di.Module {
configure() {
register(MaterialApplication);
bind(MaterialApplication);
}
}
@@ -1,4 +1,4 @@
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import 'dart:html' as dom;
@@ -17,7 +17,7 @@
* limitations under the License.
*/
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import "package:mdl/mdl.dart";
@@ -17,7 +17,7 @@
* limitations under the License.
*/
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import "package:mdl/mdl.dart";
@@ -1,4 +1,4 @@
@TestOn("content-shell")
@TestOn("chrome")
library test.unit.flux.emitter;
import 'package:test/test.dart';
@@ -17,7 +17,7 @@
* limitations under the License.
*/
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import 'dart:html' as dom;
@@ -111,7 +111,7 @@ main() {
final MaterialFormComponent mdlForm = MaterialFormComponent.widget(form);
expect(mdlForm,isNotNull);
mdlForm.updateStatus();
mdlForm.update();
expect(mdlForm.isValid,isTrue);
expect(form.classes.contains("is-invalid"),isFalse);
@@ -1,4 +1,4 @@
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import 'dart:html' as dom;
@@ -1,4 +1,4 @@
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import 'dart:html' as dom;
@@ -1,4 +1,4 @@
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import 'dart:html' as dom;
@@ -1,4 +1,4 @@
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import 'dart:html' as dom;
@@ -1,4 +1,4 @@
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import 'dart:html' as dom;
@@ -1,4 +1,4 @@
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import 'dart:html' as dom;
@@ -1,4 +1,4 @@
@TestOn("content-shell")
@TestOn("chrome")
import 'package:test/test.dart';
import 'dart:html' as dom;
@@ -1,8 +1,8 @@
@TestOn("content-shell")
@TestOn("chrome")
import 'dart:async';
import 'package:test/test.dart';
import 'package:dice/dice.dart' as di;
import 'package:dryice/dryice.dart' as di;
import 'package:mdl/mdlmock.dart' as mdlmock;
// import 'package:logging/logging.dart';
Oops, something went wrong.

0 comments on commit c0190ee

Please sign in to comment.