|
1 |
| -sudo: false |
2 |
| - |
3 | 1 | language: ruby
|
4 | 2 |
|
5 | 3 | # Only building master means that we don't run two builds for each pull request.
|
6 | 4 | branches:
|
7 | 5 | only: [master]
|
8 | 6 |
|
9 |
| -env: |
10 |
| - global: |
11 |
| - - SASS_LIBSASS_PATH=$TRAVIS_BUILD_DIR/../libsass |
12 |
| - - SASS_SASSC_PATH=$TRAVIS_BUILD_DIR/../sassc |
13 |
| - - SASS_SPEC_PATH=~$TRAVIS_BUILD_DIR/sass-spec |
14 |
| - |
15 | 7 | matrix:
|
16 | 8 | fast_finish: true
|
17 | 9 | include:
|
18 |
| - - env: IMPL=libsass COMMAND="../sassc/bin/sassc" |
19 |
| - - env: IMPL=dart-sass |
| 10 | + - name: "LibSass" |
| 11 | + env: |
| 12 | + - IMPL=libsass |
| 13 | + - COMMAND="../sassc/bin/sassc" |
| 14 | + - SASS_LIBSASS_PATH=$TRAVIS_BUILD_DIR/../libsass |
| 15 | + - SASS_SASSC_PATH=$TRAVIS_BUILD_DIR/../sassc |
| 16 | + - SASS_SPEC_PATH=~$TRAVIS_BUILD_DIR/sass-spec |
| 17 | + before_script: |
| 18 | + - git clone https://github.com/sass/libsass.git $SASS_LIBSASS_PATH |
| 19 | + - (cd $SASS_LIBSASS_PATH; git checkout $GITISH) |
| 20 | + - git clone https://github.com/sass/sassc.git $SASS_SASSC_PATH |
| 21 | + - (cd $SASS_SASSC_PATH; git checkout $GITISH) |
| 22 | + - make -C $SASS_SASSC_PATH |
| 23 | + script: bundle exec sass-spec.rb --impl $IMPL -c $COMMAND; |
| 24 | + - name: "Dart Sass" |
| 25 | + env: IMPL=dart-sass |
| 26 | + before_script: |
| 27 | + - curl -o dart.zip "https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip" |
| 28 | + - unzip dart.zip |
| 29 | + - export PATH="$PATH:`pwd`/dart-sdk/bin" |
| 30 | + - git clone https://github.com/sass/dart-sass.git ../dart-sass --depth 1 |
| 31 | + - (cd ../dart-sass; pub get) |
| 32 | + script: bundle exec sass-spec.rb --dart ../dart-sass |
20 | 33 |
|
21 | 34 | before_install:
|
22 | 35 | - if ./tools/skipped-for-impl.sh; then exit 0; fi
|
23 | 36 | - rm Gemfile.lock
|
24 |
| - |
25 |
| - - if [ $IMPL == "libsass" ]; then |
26 |
| - git clone https://github.com/sass/libsass.git $SASS_LIBSASS_PATH; |
27 |
| - (cd $SASS_LIBSASS_PATH; git checkout $GITISH); |
28 |
| - git clone https://github.com/sass/sassc.git $SASS_SASSC_PATH; |
29 |
| - (cd $SASS_SASSC_PATH; git checkout $GITISH); |
30 |
| - make -C $SASS_SASSC_PATH; |
31 |
| - fi |
32 |
| - |
33 |
| - - if [ $IMPL == "dart-sass" ]; then |
34 |
| - curl -o dart.zip "https://storage.googleapis.com/dart-archive/channels/dev/release/latest/sdk/dartsdk-linux-x64-release.zip"; |
35 |
| - unzip dart.zip; |
36 |
| - export PATH="$PATH:`pwd`/dart-sdk/bin"; |
37 |
| - |
38 |
| - git clone https://github.com/sass/dart-sass.git ../dart-sass --depth 1; |
39 |
| - (cd ../dart-sass; pub get); |
40 |
| - fi |
41 |
| - |
42 |
| -script: |
43 |
| - - if [ $IMPL == "dart-sass" ]; then |
44 |
| - bundle exec sass-spec.rb --dart ../dart-sass; |
45 |
| - else |
46 |
| - bundle exec sass-spec.rb --impl $IMPL -c $COMMAND; |
47 |
| - fi |
0 commit comments