Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 40 lines (34 sloc) 1.04 KB
#!/bin/bash
set -v
if [ "${CIRCLE_BRANCH}" != "master" ]; then
# Circle-CI
#
echo gem install
gem install --no-document checkstyle_filter-git saddler saddler-reporter-github
echo git diff
git diff --name-only origin/master
echo file grep
git diff --name-only origin/master \
| grep '.*\.js$'
echo jscs
git diff --name-only origin/master \
| grep '.*\.js$' \
| xargs ./node_modules/gulp-jscs/node_modules/.bin/jscs \
--reporter checkstyle
echo checkstyle_filter-git
git diff --name-only origin/master \
| grep '.*\.js$' \
| xargs ./node_modules/gulp-jscs/node_modules/.bin/jscs \
--reporter checkstyle \
| checkstyle_filter-git diff origin/master
echo saddler
git diff --name-only origin/master \
| grep '.*\.js$' \
| xargs ./node_modules/gulp-jscs/node_modules/.bin/jscs \
--reporter checkstyle \
| checkstyle_filter-git diff origin/master \
| saddler report \
--require saddler/reporter/github \
--reporter Saddler::Reporter::Github::PullRequestReviewComment
fi
exit 0