Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Merge pull request #251 from google/devoncarew_bump_version
Browse files Browse the repository at this point in the history
bump the stagehand version; update changelog
  • Loading branch information
devoncarew committed May 13, 2015
2 parents 2af1ffc + fb115c6 commit 3ddfec3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## 0.2.1
- All templates updated to use the latest `test` package

## 0.2.0+1
- Update the template descriptions
- The `web-full` sample now reverses the text on page load
Expand Down
2 changes: 1 addition & 1 deletion lib/src/cli_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import 'package:usage/usage_io.dart';
const String APP_NAME = 'stagehand';

// This version must be updated in tandem with the pubspec version.
const String APP_VERSION = '0.2.0+1';
const String APP_VERSION = '0.2.1';

const String APP_PUB_INFO =
'https://pub.dartlang.org/packages/${APP_NAME}.json';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

name: stagehand
# When changing this version, change the lib/src/cli_app.dart version as well.
version: 0.2.0+1
version: 0.2.1
description: >
A scaffolding generator for your Dart projects. Stagehand helps you get set
up!
Expand Down
17 changes: 5 additions & 12 deletions tool/grind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,22 +106,15 @@ void _testGenerator(stagehand.Generator generator, Directory tempDir) {

// Run the analyzer.
if (filePath != null) {
String packagesDir = path.join(tempDir.path, 'packages');

// TODO: We should be able to pass a cwd into `analyzePath`.
Analyzer.analyze(filePath,
fatalWarnings: true, packageRoot: new Directory(packagesDir));
Analyzer.analyze(filePath, fatalWarnings: true,
packageRoot: new Directory(path.join(tempDir.path, 'packages')));
}

//
// Run package tests, if test is included
//
// Run package tests, if `test` is included.
var pubspecContent = yaml.loadYaml(pubspecFile.readAsStringSync());
var devDeps = pubspecContent['dev_dependencies'];
if (devDeps != null) {
if (devDeps.containsKey('test')) {
run('pub', arguments: ['run', 'test'], workingDirectory: tempDir.path);
}
if (devDeps != null && devDeps.containsKey('test')) {
new PubApp.local('test').run([], workingDirectory: tempDir.path);
}
}

Expand Down

0 comments on commit 3ddfec3

Please sign in to comment.