Skip to content

Commit

Permalink
fix: allow running ci on dart/flutter stable (still)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Nov 20, 2020
1 parent ab0bf24 commit 1832ec7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion sqflite_support/tool/run_ci.dart
Expand Up @@ -4,8 +4,17 @@
// This is to allow running this file without null experiment
// In the future, remove this 2.9 comment or run using: dart --enable-experiment=non-nullable --no-sound-null-safety run tool/travis.dart

import 'dart:io';

import 'package:dev_test/package.dart';
import 'package:process_run/shell.dart';
import 'package:pub_semver/pub_semver.dart';

Future main() async {
await packageRunCi('.');
final nnbdEnabled = dartVersion > Version(2, 12, 0, pre: '0');
if (nnbdEnabled) {
await packageRunCi('.');
} else {
stderr.writeln('ci test skipped for $dartVersion');
}
}

0 comments on commit 1832ec7

Please sign in to comment.