2017-02-11 00:24:56 +01:00
|
|
|
build: off
|
|
|
|
|
|
|
|
branches:
|
2018-08-10 00:16:20 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
# Feature branches beginning with "feature."
|
|
|
|
- "/^feature\\..*/"
|
|
|
|
# Semantic version tags and legacy branches of the form "1.2.x".
|
|
|
|
- "/^\\d+\\.\\d+\\.(\\d+([+-].*)?|x)$/"
|
2017-02-11 00:24:56 +01:00
|
|
|
|
|
|
|
# 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}
|
2018-05-04 02:37:37 +02:00
|
|
|
- {TASK: tests, NODE: true}
|
2017-02-11 00:24:56 +01:00
|
|
|
|
|
|
|
install:
|
2018-08-09 22:23:13 +02:00
|
|
|
- choco install dart-sdk
|
2017-02-11 00:24:56 +01:00
|
|
|
- refreshenv
|
|
|
|
- pub get
|
|
|
|
- ps: >-
|
|
|
|
If ($env:NODE -eq "true") {
|
|
|
|
Install-Product node ''
|
2018-06-26 01:39:35 +02:00
|
|
|
pub run grinder npm-package
|
2017-02-11 00:24:56 +01:00
|
|
|
}
|
2018-06-27 22:12:16 +02:00
|
|
|
- ps: >-
|
|
|
|
If ($env:NODE -eq "false") {
|
|
|
|
pub run grinder app-snapshot
|
|
|
|
}
|
2017-02-11 00:24:56 +01:00
|
|
|
|
2017-12-02 23:40:19 +01:00
|
|
|
# Run this as CMD because npm's stderr will cause PowerShell to think it failed.
|
|
|
|
- IF "%NODE%"=="true" npm install
|
|
|
|
|
2017-02-11 00:24:56 +01:00
|
|
|
test_script:
|
|
|
|
- ps: >-
|
|
|
|
If ($env:NODE -eq "true") {
|
2018-05-04 02:37:37 +02:00
|
|
|
pub run test -t node
|
2017-02-11 00:24:56 +01:00
|
|
|
} Else {
|
2018-05-04 02:37:37 +02:00
|
|
|
pub run test -p vm -x node
|
2017-02-11 00:24:56 +01:00
|
|
|
}
|