Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml3
-rwxr-xr-xtest/node_sass_compile_test.sh8
-rw-r--r--test/node_sass_test.rb16
3 files changed, 11 insertions, 16 deletions
diff --git a/.travis.yml b/.travis.yml
index 6bac4ff..3087a94 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,3 +20,6 @@ notifications:
env:
global:
- VERBOSE=1
+script:
+ - bundle exec rake
+ - sh test/*.sh
diff --git a/test/node_sass_compile_test.sh b/test/node_sass_compile_test.sh
new file mode 100755
index 0000000..df6314a
--- /dev/null
+++ b/test/node_sass_compile_test.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Test compilation with node-sass binary
+
+mkdir -p tmp/node-sass
+node-sass assets/stylesheets/bootstrap -o tmp/node-sass/bootstrap.css && \
+node-sass assets/stylesheets/bootstrap/theme -o tmp/node-sass/bootstrap-theme.css || \
+(echo "node-sass compilation failed" && exit 1)
diff --git a/test/node_sass_test.rb b/test/node_sass_test.rb
deleted file mode 100644
index d1c68ec..0000000
--- a/test/node_sass_test.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-require 'test_helper'
-require 'fileutils'
-
-class NodeSassTest < Minitest::Test
- def test_node_sass_compilation
- path = 'assets/stylesheets'
- %w(bootstrap bootstrap/_theme).each do |file|
- FileUtils.mkdir_p 'tmp/node-sass'
- command = "node-sass #{path}/#{file} -o tmp/node-sass/#{File.basename file}.css"
- success = silence_stderr_if !ENV['VERBOSE'] do
- system command
- end
- assert success, 'node-sass compilation failed'
- end
- end
-end