mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Add travis-ci to run tests before merging a PR (#1184)
* Add .travis.yml * Add travis tester script * Update .gitignore with test output related directive
This commit is contained in:
parent
65a0bb8f5b
commit
019df9573e
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ npm-debug.log
|
|||||||
_gh_pages
|
_gh_pages
|
||||||
_site
|
_site
|
||||||
node_modules
|
node_modules
|
||||||
|
test/output/
|
||||||
|
6
.travis.yml
Normal file
6
.travis.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
script:
|
||||||
|
- "test/sass-compile-tester.sh"
|
||||||
|
|
||||||
|
language: sass
|
||||||
|
before_install:
|
||||||
|
- gem install sass
|
47
test/sass-compile-tester.sh
Executable file
47
test/sass-compile-tester.sh
Executable file
@ -0,0 +1,47 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# ==============================================================================
|
||||||
|
# FUNCTIONS - START
|
||||||
|
# ==============================================================================
|
||||||
|
|
||||||
|
run_it()
|
||||||
|
{
|
||||||
|
|
||||||
|
local _src="${1-bulma.sass}"
|
||||||
|
local _dest="${2-$(dirname "${BASH_SOURCE[0]}")/output/$(basename ${_src}).css}"
|
||||||
|
local _options="${3---sourcemap=none}"
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
local _dest_dir="$(dirname "${_dest}")"
|
||||||
|
|
||||||
|
if [ ! -d "${_dest_dir}" ]; then
|
||||||
|
|
||||||
|
mkdir -p "${_dest_dir}"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
sass "${_src}" "${_dest}" ${_options}
|
||||||
|
|
||||||
|
}
|
||||||
|
# run_it()
|
||||||
|
|
||||||
|
# ==============================================================================
|
||||||
|
# FUNCTIONS - END
|
||||||
|
# ==============================================================================
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# ==============================================================================
|
||||||
|
# EXECUTION - START
|
||||||
|
# ==============================================================================
|
||||||
|
|
||||||
|
run_it $@
|
||||||
|
|
||||||
|
# ==============================================================================
|
||||||
|
# EXECUTION - END
|
||||||
|
# ==============================================================================
|
Loading…
Reference in New Issue
Block a user