File: ci-build.sh

package info (click to toggle)
psl.js 1.8.0%2Bds-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 544 kB
  • sloc: javascript: 524; makefile: 10; sh: 7
file content (10 lines) | stat: -rwxr-xr-x 342 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#! /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