-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy path.travis.yml
More file actions
47 lines (38 loc) · 1.33 KB
/
.travis.yml
File metadata and controls
47 lines (38 loc) · 1.33 KB
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
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:
- env: IMPL=libsass COMMAND="../sassc/bin/sassc"
- env: 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/dev/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 == "dart-sass" ]; then
bundle exec sass-spec.rb --dart ../dart-sass;
else
bundle exec sass-spec.rb --impl $IMPL -c $COMMAND;
fi