File tree Expand file tree Collapse file tree 3 files changed +50
-3
lines changed Expand file tree Collapse file tree 3 files changed +50
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,12 @@ matrix:
39
39
- os : osx
40
40
env : AUTOTOOLS=no BUILD=static
41
41
42
- script : ./script/ci-build-libsass
42
+ script :
43
+ - ./script/ci-build-libsass
44
+ - ./script/ci-build-plugin math
45
+ - ./script/ci-build-plugin glob
46
+ - ./script/ci-build-plugin digest
47
+ - ./script/ci-build-plugin tests
43
48
before_install : ./script/ci-install-deps
44
49
install : ./script/ci-install-compiler
45
50
after_success : ./script/ci-report-coverage
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ PLUGIN=$1
4
+ RUBY_BIN=ruby
5
+ SASS_SPEC_PATH=sass-spec
6
+ SASSC_BIN=sassc/bin/sassc
7
+ SASS_SPEC_SPEC_DIR=plugins/libsass-${PLUGIN} /test
8
+
9
+ if [ -e ./tester ] ; then
10
+ SASSC_BIN=./tester
11
+ fi
12
+
13
+ if [ -d ./build/lib ] ; then
14
+ cp -a build/lib lib
15
+ fi
16
+
17
+ if [ " x$1 " == " x" ] ; then
18
+ echo " No plugin name given"
19
+ exit 1
20
+ fi
21
+
22
+ mkdir -p plugins
23
+ if [ ! -d plugins/libsass-${PLUGIN} ] ; then
24
+ git clone https://github.com/mgreter/libsass-${PLUGIN} plugins/libsass-${PLUGIN}
25
+ fi
26
+ if [ ! -d plugins/libsass-${PLUGIN} /build ] ; then
27
+ mkdir plugins/libsass-${PLUGIN} /build
28
+ fi
29
+
30
+ cd plugins/libsass-${PLUGIN} /build
31
+ cmake -G " Unix Makefiles" -D LIBSASS_DIR=" ../../.." ..
32
+ make -j2
33
+ cd ../../..
34
+
35
+ # glob only works on paths relative to imports
36
+ if [ " x$PLUGIN " == " xglob" ]; then
37
+ ${SASSC_BIN} --plugin-path plugins/libsass-${PLUGIN} /build ${SASS_SPEC_SPEC_DIR} /basic/input.scss > ${SASS_SPEC_SPEC_DIR} /basic/result.css
38
+ ${SASSC_BIN} --plugin-path plugins/libsass-${PLUGIN} /build ${SASS_SPEC_SPEC_DIR} /basic/input.scss --sourcemap > /dev/null
39
+ else
40
+ cat ${SASS_SPEC_SPEC_DIR} /basic/input.scss | ${SASSC_BIN} --plugin-path plugins/libsass-${PLUGIN} /build -I ${SASS_SPEC_SPEC_DIR} /basic > ${SASS_SPEC_SPEC_DIR} /basic/result.css
41
+ cat ${SASS_SPEC_SPEC_DIR} /basic/input.scss | ${SASSC_BIN} --plugin-path plugins/libsass-${PLUGIN} /build -I ${SASS_SPEC_SPEC_DIR} /basic --sourcemap > /dev/null
42
+ fi
43
+
44
+ diff ${SASS_SPEC_SPEC_DIR} /basic/expected_output.css ${SASS_SPEC_SPEC_DIR} /basic/result.css
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ extern "C" {
69
69
char * ADDCALL sass_compiler_find_include (const char * file, struct Sass_Compiler * compiler)
70
70
{
71
71
// get the last import entry to get current base directory
72
- // struct Sass_Options* options = sass_compiler_get_options(compiler);
73
72
Sass_Import_Entry import = sass_compiler_get_last_import (compiler);
74
73
const std::vector<std::string>& incs = compiler->cpp_ctx ->include_paths ;
75
74
// create the vector with paths to lookup
@@ -84,7 +83,6 @@ extern "C" {
84
83
char * ADDCALL sass_compiler_find_file (const char * file, struct Sass_Compiler * compiler)
85
84
{
86
85
// get the last import entry to get current base directory
87
- // struct Sass_Options* options = sass_compiler_get_options(compiler);
88
86
Sass_Import_Entry import = sass_compiler_get_last_import (compiler);
89
87
const std::vector<std::string>& incs = compiler->cpp_ctx ->include_paths ;
90
88
// create the vector with paths to lookup
You can’t perform that action at this time.
0 commit comments