Skip to content

Instantly share code, notes, and snippets.

@baz8080
Created May 12, 2017 10:01
Show Gist options
  • Save baz8080/b43d6468579d6cd12dc2546d17cad66b to your computer and use it in GitHub Desktop.
Save baz8080/b43d6468579d6cd12dc2546d17cad66b to your computer and use it in GitHub Desktop.
Travis dispatcher script
#!/usr/bin/env bash
set -e
if [ "$COMPONENT" == "unit" ]; then
./scripts/travis_test_unit.sh
elif [ "$COMPONENT" == "instrumentation-provider" ]; then
./scripts/travis_test_instrumentation_provider.sh
elif [ "$COMPONENT" == "instrumentation-sdk" ]; then
./scripts/travis_test_instrumentation_sdk.sh
elif [ "$COMPONENT" == "sample" ]; then
./scripts/travis_test_sample_app.sh
elif [ "$COMPONENT" == "build" ]; then
./scripts/build_and_upload_sdk.sh
./scripts/build_and_upload_sample.sh
else
echo "That module doesn't exist, now does it? ;)"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment