This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
prefixes=$(git diff --cached --name-only | while read f ; do echo "${f%/*}" ; done | sort | uniq) | |
prefixes_count=$(echo $prefixes | wc -l) | |
if [ "$prefixes_count" -eq "1" ]; then | |
sed -i "1s;^;$prefixes: \n;" "$1" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: kkarczmarczyk/node-yarn:6.9 | |
cache: | |
paths: | |
- webapp/node_modules/ | |
- vendor/apt | |
e2e_tests: | |
before_script: | |
# install chrome |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SRC=$(git rev-parse --show-toplevel) | |
EXCLUDE="--exclude-dir 'node_modules' --exclude-dir '.git'" | |
#========================================================== | |
# Check if I forgot to remove 'only' keyword from tests. | |
# To make sure that before commit run all tests | |
only_command="grep -c -h -r $EXCLUDE -E \"(describe|it)\.only\" $SRC | awk -F ':' '{x +=\$0}; END {print x}'" | |
fonly_command="grep -c -h -r $EXCLUDE -E \"f(it|describe)\(\" $SRC | awk -F ':' '{x +=\$0}; END {print x}'" | |
only=`eval $only_command` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import sys, re | |
import os.path | |
""" The CSS classname/namespace prefix to prepend to all Bootstrap CSS classes """ | |
CSS_CLASS_PREFIX = 'ns-' | |
# Not all CSS classes that are referenced in JavaScript are actually defined in the CSS script. |