This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/psl/scripts/ci-build.sh

11 lines
342 B
Bash
Raw Normal View History

2019-08-11 18:48:02 +00:00
#! /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