mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
Enable tests for the latest Dart
This commit is contained in:
parent
713d179c9e
commit
a23b8299a9
18
.travis.yml
18
.travis.yml
@ -3,24 +3,22 @@
|
||||
# Set the language to Ruby so that we can run sass-spec tests.
|
||||
language: ruby
|
||||
|
||||
# Note: we're currently pinned to Dart 2.0.0-dev.36.0 because dart2js doesn't
|
||||
# support configuration-specific imports with the new front-end.
|
||||
env:
|
||||
# Language specs, defined in sass/sass-spec
|
||||
- TASK=specs DART_CHANNEL=dev DART_VERSION=2.0.0-dev.36.0
|
||||
- TASK=specs DART_CHANNEL=dev DART_VERSION=latest
|
||||
- TASK=specs DART_CHANNEL=stable DART_VERSION=latest
|
||||
- TASK=specs DART_CHANNEL=stable DART_VERSION=latest ASYNC=true
|
||||
|
||||
# Unit tests, defined in test/.
|
||||
- TASK=tests DART_CHANNEL=dev DART_VERSION=2.0.0-dev.36.0
|
||||
- TASK=tests DART_CHANNEL=dev DART_VERSION=latest
|
||||
- TASK=tests DART_CHANNEL=stable DART_VERSION=latest
|
||||
- TASK=tests DART_CHANNEL=dev DART_VERSION=2.0.0-dev.36.0 NODE_VERSION=stable
|
||||
- TASK=tests DART_CHANNEL=dev DART_VERSION=2.0.0-dev.36.0 NODE_VERSION=v6.9.1
|
||||
- TASK=tests DART_CHANNEL=dev DART_VERSION=2.0.0-dev.36.0 NODE_VERSION=v4.6.2
|
||||
- TASK=tests DART_CHANNEL=dev DART_VERSION=latest NODE_VERSION=stable
|
||||
- TASK=tests DART_CHANNEL=dev DART_VERSION=latest NODE_VERSION=v6.9.1
|
||||
- TASK=tests DART_CHANNEL=dev DART_VERSION=latest NODE_VERSION=v4.6.2
|
||||
|
||||
# Miscellaneous checks.
|
||||
- TASK=analyze DART_CHANNEL=dev DART_VERSION=2.0.0-dev.36.0
|
||||
- TASK=format DART_CHANNEL=dev DART_VERSION=2.0.0-dev.36.0
|
||||
- TASK=analyze DART_CHANNEL=dev DART_VERSION=latest
|
||||
- TASK=format DART_CHANNEL=dev DART_VERSION=latest
|
||||
|
||||
rvm:
|
||||
- 2.3.1
|
||||
@ -97,7 +95,7 @@ jobs:
|
||||
if: &deploy-if
|
||||
(type IN (push, api)) AND (repo = sass/dart-sass) AND tag =~ ^\d+\.\d+\.\d+([+-].*)?$
|
||||
env:
|
||||
- DART_CHANNEL=dev DART_VERSION=2.0.0-dev.36.0 GITHUB_USER=sassbot
|
||||
- DART_CHANNEL=dev DART_VERSION=latest GITHUB_USER=sassbot
|
||||
# GITHUB_AUTH="..."
|
||||
- secure: "AAP74aT+8SQmwGeHrCsZ7GgppvCCkDAZXszivocMy3Fi9gfMCLABBCh67pGINJX4VlLW7ftPF3xivlvgGu+e4ncXz9m9jIPZ9Iza3cW5jCnCgyRGZD98gwabIDFWiv4X9V2xnJA2p1ZuYBf8Sh3TTipUFBKMjlnxVxYkIOTud4rUss/htFhxVA/oFTo0ThTZwXuxJ+GRGTM4PcuHPJvPf18iRPs2AHFV6ZP51xgc3AsXC6Zyom5EJeX0yGj9zWQ0XCjnuFdGsI6G9jmkrmqgAXuUipgqAn0tjxPYp9R/1HqnBLD3Zbrvyi5pCiSFclU6CS6kTDbefzPOc5+zrnlkaolVeF8tQ+EhZiZqtLnpLYUz9bgknoFUapUN4N0R36sKBStdRv54+sMeoOzpQ8ep3PeZW5nWbak12wcrDx38ToWs6hQ4ycb0SQDZZatHsASpSu2nX8HwzZSDAZmsAdB+epPmgA0CBjWVG1ycmVnT6l3OopUmbaY3pXBNzFUXq5Fcd7Q39/MfrmHpyxSc3QVf8xNtUx9ggYtK0Kwx6dgykhNMVzFGZRVyQgwpaiyDqgMGEU2GQzzcJhgKo9+y1fDtdfj/cctmvJ2Fo1fkk+DMkEPUHGOVo6uKFnartky9iLm1WiHDMruJ6SIOJzAnb+TMBWQTSwI+F4wyEiRVR8Zv4uA="
|
||||
script: skip # Don't run tests
|
||||
|
@ -8,7 +8,11 @@ branches:
|
||||
environment:
|
||||
matrix:
|
||||
- {TASK: tests, NODE: false}
|
||||
- {TASK: tests, NODE: true}
|
||||
|
||||
# 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}
|
||||
|
||||
install:
|
||||
- choco install dart-sdk
|
||||
|
@ -92,12 +92,19 @@ js() => _js(release: false);
|
||||
@Task('Compile to JS in release mode.')
|
||||
js_release() => _js(release: true);
|
||||
|
||||
/// The constraint on Dart versions for which Dart Sass supports JS compilation.
|
||||
final _jsConstraint = new VersionConstraint.parse(">=2.0.0-dev.42.0");
|
||||
|
||||
/// Compiles Sass to JS.
|
||||
///
|
||||
/// If [release] is `true`, this compiles minified with
|
||||
/// --trust-type-annotations. Otherwise, it compiles unminified with pessimistic
|
||||
/// type checks.
|
||||
void _js({@required bool release}) {
|
||||
if (!_jsConstraint.allows(_dartVersion)) {
|
||||
fail("JS compilation is only supported for Dart $_jsConstraint.");
|
||||
}
|
||||
|
||||
_ensureBuild();
|
||||
var destination = new File('build/sass.dart.js');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user