forked from sass/sass-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (48 loc) · 1.87 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
sudo: false
language: ruby
# Only building master means that we don't run two builds for each pull request.
branches:
only: [master]
env:
global:
- SASS_LIBSASS_PATH=$TRAVIS_BUILD_DIR/../libsass
- SASS_SASSC_PATH=$TRAVIS_BUILD_DIR/../sassc
- SASS_SPEC_PATH=~$TRAVIS_BUILD_DIR/sass-spec
matrix:
fast_finish: true
include:
- gemfile: Gemfile
env: LANGUAGE_VERSION=3.4 IMPL=ruby-sass
- gemfile: Gemfile.sass_3_5
env: LANGUAGE_VERSION=3.5 IMPL=ruby-sass
- gemfile: Gemfile.sass_4_0
env: LANGUAGE_VERSION=4.0 IMPL=ruby-sass
- env: LANGUAGE_VERSION=3.4 IMPL=libsass COMMAND="../sassc/bin/sassc" GITISH=3.4
- env: LANGUAGE_VERSION=3.5 IMPL=libsass COMMAND="../sassc/bin/sassc" GITISH=master
- env: LANGUAGE_VERSION=4.0 IMPL=dart-sass
before_install:
- if ./tools/skipped-for-impl.sh; then exit 0; fi
- rm Gemfile.lock
- if [ $IMPL == "libsass" ]; then
git clone https://github.com/sass/libsass.git $SASS_LIBSASS_PATH;
(cd $SASS_LIBSASS_PATH; git checkout $GITISH);
git clone https://github.com/sass/sassc.git $SASS_SASSC_PATH;
(cd $SASS_SASSC_PATH; git checkout $GITISH);
make -C $SASS_SASSC_PATH;
fi
- if [ $IMPL == "dart-sass" ]; then
curl -o dart.zip "https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip";
unzip dart.zip;
export PATH="$PATH:`pwd`/dart-sdk/bin";
git clone https://github.com/sass/dart-sass.git ../dart-sass --depth 1;
(cd ../dart-sass; pub get);
fi
script:
- if [ $IMPL == "ruby-sass" ]; then
bundle update sass;
bundle exec sass-spec.rb -V $LANGUAGE_VERSION --impl $IMPL;
elif [ $IMPL == "dart-sass" ]; then
bundle exec sass-spec.rb -V $LANGUAGE_VERSION --dart ../dart-sass;
else
bundle exec sass-spec.rb -V $LANGUAGE_VERSION --impl $IMPL -c $COMMAND;
fi