You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
342 B
Bash

5 years ago
#! /usr/bin/env bash
if [[ "$TRAVIS_EVENT_TYPE" != "cron" || "$TRAVIS_NODE_VERSION" != "12" || "$TRAVIS_BRANCH" != "master" ]]; then
echo "Not triggered by cron. Running tests..."
npm test
else
echo "Triggered by cron. Running update script..."
npm run build && npm run commit-and-pr "chore(rules): Updates rules and dist files"
fi