Start migration to cirrus CI

This commit is contained in:
Simon Binder 2019-07-05 10:47:42 +02:00
parent d98449407e
commit 734ea86c6d
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
4 changed files with 64 additions and 3 deletions

14
.cirrus.yml Normal file
View File

@ -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

View File

@ -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"

26
tool/analyze.sh Executable file
View File

@ -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=$?

20
tool/pub_get.sh Executable file
View File

@ -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