Sha256: d4a48e35d7139d8ddd438a3a1b5fd56d56958e474071f3717dfe3943bacaec4f

Contents?: true

Size: 1.98 KB

Versions: 26

Compression:

Stored size: 1.98 KB

Contents

#!/bin/bash

PLUGIN=$1
RUBY_BIN=ruby
SASS_SPEC_PATH=sass-spec
SASSC_BIN=sassc/bin/sassc
SASS_SPEC_SPEC_DIR=plugins/libsass-${PLUGIN}/test

if [ -e ./tester ] ; then
  SASSC_BIN=./tester
fi

if [ -d ./build/lib ] ; then
  cp -a build/lib lib
fi

if [ "x$1" == "x" ] ; then
  echo "No plugin name given"
  exit 1
fi

if [ "x$COVERAGE" == "0" ] ; then
  unset COVERAGE
fi

export EXTRA_CFLAGS=""
export EXTRA_CXXFLAGS=""
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
  # osx doesn't seem to know gcov lib?
  export EXTRA_LDFLAGS="--coverage"
else
  export EXTRA_LDFLAGS="-lgcov --coverage"
fi

mkdir -p plugins
if [ ! -d plugins/libsass-${PLUGIN} ] ; then
  git clone https://github.com/mgreter/libsass-${PLUGIN} plugins/libsass-${PLUGIN}
fi
if [ ! -d plugins/libsass-${PLUGIN}/build ] ; then
  mkdir plugins/libsass-${PLUGIN}/build
fi
RETVAL=$?; if [ "$RETVAL" != "0" ]; then exit $RETVAL; fi

cd plugins/libsass-${PLUGIN}/build
cmake -G "Unix Makefiles" -D LIBSASS_DIR="../../.." ..
RETVAL=$?; if [ "$RETVAL" != "0" ]; then exit $RETVAL; fi
make VERBOSE=1 -j2
RETVAL=$?; if [ "$RETVAL" != "0" ]; then exit $RETVAL; fi
cd ../../..

# glob only works on paths relative to imports
if [ "x$PLUGIN" == "xglob" ]; then
  ${SASSC_BIN} --plugin-path plugins/libsass-${PLUGIN}/build ${SASS_SPEC_SPEC_DIR}/basic/input.scss > ${SASS_SPEC_SPEC_DIR}/basic/result.css
  ${SASSC_BIN} --plugin-path plugins/libsass-${PLUGIN}/build ${SASS_SPEC_SPEC_DIR}/basic/input.scss --sourcemap > /dev/null
else
  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
  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
fi
RETVAL=$?; if [ "$RETVAL" != "0" ]; then exit $RETVAL; fi

diff ${SASS_SPEC_SPEC_DIR}/basic/expected_output.css ${SASS_SPEC_SPEC_DIR}/basic/result.css
RETVAL=$?; if [ "$RETVAL" != "0" ]; then exit $RETVAL; fi

Version data entries

26 entries across 26 versions & 8 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/sassc-2.0.0/ext/libsass/script/ci-build-plugin
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/script/ci-build-plugin
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/script/ci-build-plugin
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/script/ci-build-plugin
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/script/ci-build-plugin
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/script/ci-build-plugin
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/script/ci-build-plugin
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/script/ci-build-plugin
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/script/ci-build-plugin
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/script/ci-build-plugin
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/script/ci-build-plugin
sassc-2.0.1 ext/libsass/script/ci-build-plugin
optimacms-0.4.3 spec/dummy/node_modules/node-sass/src/libsass/script/ci-build-plugin
optimacms-0.4.2 spec/dummy/node_modules/node-sass/src/libsass/script/ci-build-plugin
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/node-sass/src/libsass/script/ci-build-plugin
lux_assets-0.2.11 ./node_modules/node-sass/src/libsass/script/ci-build-plugin
lux_assets-0.2.9 ./node_modules/node-sass/src/libsass/script/ci-build-plugin
lux_assets-0.2.4 ./node_modules/node-sass/src/libsass/script/ci-build-plugin
lux_assets-0.2.2 ./node_modules/node-sass/src/libsass/script/ci-build-plugin
lux_assets-0.2.1 ./node_modules/node-sass/src/libsass/script/ci-build-plugin