File: preversion.sh

package info (click to toggle)
node-lolex 5.1.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 800 kB
  • sloc: sh: 32; makefile: 10
file content (15 lines) | stat: -rwxr-xr-x 382 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR > /dev/null

export SAUCE_USERNAME=sinonjs

if [ -z $SAUCE_ACCESS_KEY ]; then
    echo 'SAUCE_ACCESS_KEY has not been exported and made available for test `test-cloud` script!'
    exit 1
fi

npm test # lints and tests

npm run test-cloud # should not take more than approx 25 seconds