mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 12:44:42 +01:00
42 lines
929 B
YAML
42 lines
929 B
YAML
build: off
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
# Feature branches beginning with "feature."
|
|
- "/^feature\\..*/"
|
|
# Semantic version tags and legacy branches of the form "1.2.x".
|
|
- "/^\\d+\\.\\d+\\.(\\d+([+-].*)?|x)$/"
|
|
|
|
# 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 ''
|
|
pub run grinder npm-package
|
|
}
|
|
- ps: >-
|
|
If ($env:NODE -eq "false") {
|
|
pub run grinder app-snapshot
|
|
}
|
|
|
|
# Run this as CMD because npm's stderr will cause PowerShell to think it failed.
|
|
- IF "%NODE%"=="true" npm install
|
|
|
|
test_script:
|
|
- ps: >-
|
|
If ($env:NODE -eq "true") {
|
|
pub run test -t node
|
|
} Else {
|
|
pub run test -p vm -x node
|
|
}
|