From 16a93ca370473f9807edfa1062371360fe5402e0 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 25 Dec 2017 15:08:44 +0100 Subject: [PATCH] add linter command --- .travis/push.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis/push.sh b/.travis/push.sh index e3483a676..8a3e2a734 100755 --- a/.travis/push.sh +++ b/.travis/push.sh @@ -1,5 +1,3 @@ -#!/bin/sh - setup_git() { git config --global user.email "travis@travis-ci.org" git config --global user.name "Travis CI" @@ -8,6 +6,11 @@ setup_git() { commit_website_files() { git checkout master git add * + if [[ $(( $TRAVIS_BUILD_NUMBER % 5 )) == 0 ]]; then + n = $(( ($TRAVIS_BUILD_NUMBER-270)/5)) + npm run linter + echo "Linting build: $n" + fi git commit --message "Travis build: $TRAVIS_BUILD_NUMBER" }