2017-02-11 00:24:56 +01:00
|
|
|
build: off
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only: [master]
|
|
|
|
|
|
|
|
# Don't run specs because sass-spec doesn't support Windows. They're also
|
|
|
|
# supposed to be platform-independent.
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- {TASK: tests, NODE: false}
|
|
|
|
- {TASK: tests, NODE: true}
|
|
|
|
|
|
|
|
install:
|
|
|
|
- choco install dart-sdk
|
|
|
|
- refreshenv
|
|
|
|
- pub get
|
|
|
|
- ps: >-
|
|
|
|
If ($env:NODE -eq "true") {
|
|
|
|
Install-Product node ''
|
2017-07-07 03:07:43 +02:00
|
|
|
$env:SASS_MINIFY_JS = "false"
|
|
|
|
pub run grinder npm_package
|
2017-02-11 00:24:56 +01:00
|
|
|
}
|
|
|
|
|
2017-07-07 03:07:43 +02:00
|
|
|
# Don't run Node tests on Windows until dart-lang/sdk#30098 lands.
|
2017-02-11 00:24:56 +01:00
|
|
|
test_script:
|
|
|
|
- ps: >-
|
|
|
|
If ($env:NODE -eq "true") {
|
2017-07-07 03:07:43 +02:00
|
|
|
pub run test -p vm -t node
|
2017-02-11 00:24:56 +01:00
|
|
|
} Else {
|
|
|
|
pub run test -x node
|
|
|
|
}
|