Skip to content

Commit 02767a2

Browse files
nschonninex3
andauthored
chore: Flatten Travis config (#1445)
chore: Flatten Travis config - Remove deprecated "sudo" option - Use named matrix sets instead of conditions Co-Authored-By: Natalie Weizenbaum <[email protected]>
1 parent 17f0854 commit 02767a2

File tree

1 file changed

+23
-34
lines changed

1 file changed

+23
-34
lines changed

.travis.yml

Lines changed: 23 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,36 @@
1-
sudo: false
2-
31
language: ruby
42

53
# Only building master means that we don't run two builds for each pull request.
64
branches:
75
only: [master]
86

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-
157
matrix:
168
fast_finish: true
179
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
2033

2134
before_install:
2235
- if ./tools/skipped-for-impl.sh; then exit 0; fi
2336
- 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

Comments
 (0)