aboutsummaryrefslogtreecommitdiffstats
path: root/travis_build.sh
blob: f35c8915546122bf01bc13aa6d45d827d9dbdd4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

set -xe

warn() {
  tput setaf 1
  echo "[ERROR] Received $1"
  tput sgr0
  exit 1
}

trap "warn SIGINT" SIGINT
trap "warn SIGTERM" SIGTERM
trap "warn SIGHUP" SIGHUP

export SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev`
./lib/sauce/sauce_connect_setup.sh
npm install -g grunt-cli
grunt ci-checks package

echo ">>> grunt exited with code: $?"
echo ""
echo ""

./lib/sauce/sauce_connect_block.sh
grunt parallel:travis --reporters dots --browsers SL_Chrome