Skip to content

Commit e4ab87f

Browse files
committed
Merge pull request #1300 from xzyfer/feat/optin-sass-spec
Configurable sass-spec environment for CI
2 parents fbfaf26 + 4711830 commit e4ab87f

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ env:
2323
- AUTOTOOLS=no COVERAGE=yes BUILD=static
2424
- AUTOTOOLS=yes COVERAGE=no BUILD=shared
2525

26+
global:
27+
- SASS_SPEC_REPO=https://github.com/sass/sass-spec.git
28+
- SASS_SPEC_REPO_GITLOC=master
29+
2630
# currenty there are various issues when
2731
# built with coverage, clang and autotools
2832
# - AUTOTOOLS=yes COVERAGE=yes BUILD=shared

script/bootstrap

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
script/branding
44

55
if [ ! -d "sass-spec" ]; then
6-
git clone https://github.com/sass/sass-spec.git
6+
if [ -z "$SASS_SPEC_REPO" ]; then
7+
SASS_SPEC_REPO=https://github.com/sass/sass-spec.git
8+
fi
9+
git clone $SASS_SPEC_REPO
710
fi
811
if [ ! -d "sassc" ]; then
912
git clone https://github.com/sass/sassc.git

script/spec

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,16 @@
22

33
script/bootstrap
44

5+
SASS_SPEC_REPO_GITLOC ?= master
6+
7+
if [ -z "$SASS_SPEC_REPO_GITLOC" ]; then
8+
SASS_SPEC_REPO_GITLOC=master
9+
fi
10+
11+
echo "======================================================================"
12+
echo "Checking out sass-spec @ $SASS_SPEC_REPO_GITLOC"
13+
echo "======================================================================"
14+
15+
(cd $SASS_SPEC_PATH; git checkout $SASS_SPEC_REPO_GITLOC)
16+
517
make $MAKE_OPTS test_build

0 commit comments

Comments
 (0)