Run Appveyor against the Dart 2 SDK (#319)

This commit is contained in:
Natalie Weizenbaum 2018-05-03 17:37:37 -07:00 committed by GitHub
parent 9fb508e338
commit 454603d160
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,14 +8,10 @@ branches:
environment:
matrix:
- {TASK: tests, NODE: false}
# We only support running Node tests with Dart >=2.0.0-dev.42.0, and the most
# recent version on Chocolatey is (at time of writing) 2.0.0-dev.5. Once it's
# updated, we should re-enable these tests.
# - {TASK: tests, NODE: true}
- {TASK: tests, NODE: true}
install:
- choco install dart-sdk
- choco install --pre dart-sdk
- refreshenv
- pub get
- ps: >-
@ -27,11 +23,10 @@ install:
# 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") {
pub run test -x dart2 -t node
pub run test -t node
} Else {
pub run test -p vm -x dart2 -x node
pub run test -p vm -x node
}