Merge pull request #199 from sass/fix-appveyor

Fix tests on Appveyor
This commit is contained in:
Natalie Weizenbaum 2017-12-02 16:04:24 -08:00 committed by GitHub
commit a514ac505e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -63,7 +63,7 @@ script:
elif [ "$TASK" = tests ]; then
if [ -z "$NODE_VERSION" ]; then
echo "${bold}Running Dart tests against $(dart --version &> /dev/stdout).$none";
pub run test -x node -p vm;
pub run test -x node;
else
echo "${bold}Running Node tests against Node $(node --version).$none";
pub run test -t node;

View File

@ -21,10 +21,14 @@ install:
pub run grinder npm_package
}
# Run this as CMD because npm's stderr will cause PowerShell to think it failed.
- IF "%NODE%"=="true" npm install
# Don't run Node tests on Windows until dart-lang/sdk#30098 lands.
test_script:
- ps: >-
If ($env:NODE -eq "true") {
# TODO(nweiz): "-p node" is currently broken. Figure out why.
pub run test -p vm -t node
} Else {
pub run test -x node

View File

@ -2,6 +2,8 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
@TestOn('vm')
import 'dart:convert';
import 'dart:io';