mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
20 lines
No EOL
388 B
Bash
20 lines
No EOL
388 B
Bash
#!/bin/bash
|
|
|
|
# Move into a known directory
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
cd $DIR/..
|
|
|
|
npm run phantom-test -s
|
|
result=$?
|
|
if [ "$result" = 0 ];
|
|
then
|
|
if [ "${CI}" = "true" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ];
|
|
then
|
|
npm run zuul-test -s
|
|
result=$?
|
|
else
|
|
echo "Skipping zuul-test as this is not a master CI branch test run"
|
|
fi
|
|
fi
|
|
|
|
exit $result |