Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
Added fold commands to travis script block
Browse files Browse the repository at this point in the history
  • Loading branch information
DreierF committed Sep 13, 2017
1 parent 477599b commit 14b2ede
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,32 @@ before_install:
- tar xvf services.tar
- wget https://raw.githubusercontent.com/JakeWharton/pidcat/master/pidcat.py
install:
# Converts the shallow clone to a full clone
# This is necessary in order to determine the current app version code
- git fetch --unshallow --tags
before_script:
- echo no | android create avd -f -n test -t "android-"$EMULATOR_API_LEVEL --abi $ANDROID_ABI -s WVGA800 -c 128M
- emulator -avd test -no-audio -no-window &
- ./gradlew clean
script:
- echo -e '\033[0;33mBuilding...\033[0m' && echo -en 'travis_fold:start:script.build\\r'
- ./gradlew assembleRegularRelease -PdisablePreDex
- echo -en 'travis_fold:end:script.build\\r'

- echo -e '\033[0;33mUnit tests...\033[0m' && echo -en 'travis_fold:start:script.unittest\\r'
- ./gradlew testRelease jacocoTestReport -PdisablePreDex
- echo -en 'travis_fold:end:script.unittest\\r'

- echo -e '\033[0;33mUI tests...\033[0m' && echo -en 'travis_fold:start:script.uitest\\r'
- android-wait-for-emulator
- adb shell settings put global window_animation_scale 0
- adb shell settings put global transition_animation_scale 0
- adb shell settings put global animator_duration_scale 0
- adb shell input keyevent 82 &
- adb logcat -c
- ./gradlew testRelease jacocoTestReport -PdisablePreDex
- travis_wait ./gradlew createRegularDebugCoverageReport -PdisablePreDex
- echo -en 'travis_fold:end:script.uitest\\r'

after_success:
- |
if [[ "$TRAVIS_TAG" ]]; then
Expand Down

0 comments on commit 14b2ede

Please sign in to comment.