Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The FLX package should test itself #38

Merged
merged 1 commit into from
Nov 7, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/flx/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ author: Flutter Authors <flutter-dev@googlegroups.com>
description: Library for dealing with Flutter bundle (.flx) files
homepage: https://github.com/flutter/flutter/tree/master/packages/flx
dependencies:
bignum: ^0.0.7
asn1lib: ^0.4.1
cipher: ^0.7.1
crypto: ^0.9.1
path: ^1.3.0
sky_services: 0.0.50
yaml: ^2.1.3

environment:
sdk: '>=1.12.0 <2.0.0'

dev_dependencies:
test: ^0.12.5
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import 'dart:convert' hide BASE64;
import 'dart:typed_data';
import 'dart:io';
import 'dart:typed_data';

import 'package:crypto/crypto.dart';
import 'package:flx/signing.dart';
import 'package:flx/bundle.dart';
import 'package:path/path.dart' as path;
import 'package:flx/signing.dart';
import 'package:test/test.dart';

main() async {
Expand All @@ -26,7 +25,7 @@ main() async {

// Create a temp dir and file for the bundle.
Directory tempDir = await Directory.systemTemp.createTempSync('bundle_test');
String bundlePath = path.join(tempDir.path, 'bundle.flx');
String bundlePath = tempDir.path + '/bundle.flx';

AsymmetricKeyPair keyPair = keyPairFromPrivateKeyBytes(kPrivateKeyDER);
Map<String, dynamic> manifest = JSON.decode(UTF8.decode(
Expand Down
3 changes: 0 additions & 3 deletions packages/updater/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
// found in the LICENSE file.

import 'dart:async';
import 'dart:convert';
import 'dart:math';
import 'dart:io';
import 'dart:typed_data';

import 'package:mojo/core.dart';
import 'package:flutter/services.dart';
Expand Down
3 changes: 2 additions & 1 deletion travis/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ set -ex
pub global activate tuneup

(cd packages/cassowary; pub get)
(cd packages/newton; pub get)
(cd packages/flutter_tools; pub get)
(cd packages/flx; pub get)
(cd packages/newton; pub get)
(cd packages/unit; pub get)

./travis/download_tester.py packages/unit/packages/sky_engine/REVISION bin/cache/travis/out/Debug
4 changes: 3 additions & 1 deletion travis/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
set -ex

(cd packages/cassowary; pub global run tuneup check; pub run test -j1)
(cd packages/newton; pub global run tuneup check; pub run test -j1)
(cd packages/flutter_tools; pub global run tuneup check; pub run test -j1)
(cd packages/flx; pub global run tuneup check; pub run test -j1)
(cd packages/newton; pub global run tuneup check; pub run test -j1)

./dev/run_tests --engine-dir bin/cache/travis