forked from ksoichiro/Android-ObservableScrollView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis-script.sh
More file actions
19 lines (17 loc) · 713 Bytes
/
.travis-script.sh
File metadata and controls
19 lines (17 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
echo "TEST_TARGET=${TEST_TARGET}"
echo "TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST}"
echo "TRAVIS_BRANCH=${TRAVIS_BRANCH}"
if [ "$TEST_TARGET" = "android" ]; then
# Release build type is only for Google Play store currently,
# which resolve dependency from Maven Central.
# This causes build errors while developing a new feature, so disable release build.
./gradlew --full-stacktrace assembleDevDebug :library:connectedCheck
elif [ "$TEST_TARGET" = "website" ]; then
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ ! -z "$GH_TOKEN" ]; then
echo "Update website..."
pushd website > /dev/null 2>&1
npm run deploy
popd > /dev/null 2>&1
fi
fi