Skip to content

Instantly share code, notes, and snippets.

@johanneswilm
johanneswilm / sauce-connect.sh
Created May 19, 2016 18:53 — forked from sarahhodne/sauce-connect.sh
Run Sauce Connect on Travis CI
#!/bin/bash
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then
echo "This script can't run without your Sauce credentials"
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables"
echo "export SAUCE_USERNAME=ur-username"
echo "export SAUCE_ACCESS_KEY=ur-access-key"
exit 1
fi
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)"