diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..191edc40 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +# Set the language to Ruby so that we can run sass-spec tests. +language: ruby +env: +- DART_VERSION=1.19.1 ANALYZE=false +- DART_VERSION=latest ANALYZE=true + +rvm: +- 2.3.1 + +cache: + directories: + - $HOME/.pub-cache + +# Install the Dart SDK. +install: +- curl -o dart.zip "https://storage.googleapis.com/dart-archive/channels/stable/release/$DART_VERSION/sdk/dartsdk-linux-x64-release.zip" +- unzip dart.zip +- export PATH="$PATH:`pwd`/dart-sdk/bin" +- pub get + +script: ./tool/travis.sh diff --git a/tool/travis.sh b/tool/travis.sh index cd57751a..90644d13 100755 --- a/tool/travis.sh +++ b/tool/travis.sh @@ -35,8 +35,8 @@ dir=`mktemp -d /tmp/sass-spec-XXXXXXXX` cd "$dir" fold "git.sass-spec" \ - git clone git://github.com/sass/sass-spec --branch dart-sass-old --depth 1 + git clone git://github.com/sass/sass-spec --branch dart-sass --depth 1 cd sass-spec fold "bundle" bundle install --jobs=3 --retry=3 -echo-and-run bundle exec sass-spec.rb --output-style expanded --probe-todo --dart "$dart_sass" +echo-and-run bundle exec sass-spec.rb --probe-todo --dart "$dart_sass"