From 734ea86c6d0d38cd552a09290597338216aadc7c Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Fri, 5 Jul 2019 10:47:42 +0200 Subject: [PATCH] Start migration to cirrus CI --- .cirrus.yml | 14 ++++++++++++++ moor_flutter/pubspec.lock | 7 ++++--- tool/analyze.sh | 26 ++++++++++++++++++++++++++ tool/pub_get.sh | 20 ++++++++++++++++++++ 4 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 .cirrus.yml create mode 100755 tool/analyze.sh create mode 100755 tool/pub_get.sh diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 00000000..d6f5650d --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,14 @@ +# Run tasks with the dart SDK installed by default +container: + image: "google/dart:latest" + +task: + pub_cache: + folder: $HOME/.pub-cache + matrix: + - name: pub_get + test_script: tool/pub_get.sh + - name: analyze + depends_on: + - pub_get + test_script: tool/analyze.sh \ No newline at end of file diff --git a/moor_flutter/pubspec.lock b/moor_flutter/pubspec.lock index 3c113fae..57bec092 100644 --- a/moor_flutter/pubspec.lock +++ b/moor_flutter/pubspec.lock @@ -59,7 +59,7 @@ packages: path: "../moor" relative: true source: path - version: "1.5.1" + version: "1.5.1+1" path: dependency: "direct main" description: @@ -99,7 +99,7 @@ packages: name: sqflite url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.1.6+1" stack_trace: dependency: transitive description: @@ -127,7 +127,7 @@ packages: name: synchronized url: "https://pub.dartlang.org" source: hosted - version: "1.5.3+2" + version: "2.1.0+1" term_glyph: dependency: transitive description: @@ -158,3 +158,4 @@ packages: version: "2.0.8" sdks: dart: ">=2.2.0 <3.0.0" + flutter: ">=1.2.1 <2.0.0" diff --git a/tool/analyze.sh b/tool/analyze.sh new file mode 100755 index 00000000..a7621e8c --- /dev/null +++ b/tool/analyze.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +EXIT_CODE=0 + +cd moor +echo $(pwd) +dartfmt -n --set-exit-if-changed . || EXIT_CODE=$? +dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$? +cd .. + +cd moor_flutter +echo $(pwd) +dartfmt -n --set-exit-if-changed . || EXIT_CODE=$? +dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$? +cd .. + +cd moor_generator +echo $(pwd) +dartfmt -n --set-exit-if-changed . || EXIT_CODE=$? +dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$? +cd .. + +cd sqlparser +echo $(pwd) +dartfmt -n --set-exit-if-changed . || EXIT_CODE=$? +dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$? diff --git a/tool/pub_get.sh b/tool/pub_get.sh new file mode 100755 index 00000000..060f2a33 --- /dev/null +++ b/tool/pub_get.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +cd moor +echo $(pwd) +pub upgrade +cd .. + +cd moor_flutter +echo $(pwd) +flutter packages upgrade +cd .. + +cd moor_generator +echo $(pwd) +pub upgrade +cd .. + +cd sqlparser +echo $(pwd) +pub upgrade