<commit_before>machine:
    java:
        version: oraclejdk8
    environment:
        ANDROID_HOME: /usr/local/android-sdk-linux
        APPLICATION_ID: net.squanchy.example
        FABRIC_API_KEY: 0000000000000000000000000000000000000000 
        GOOGLE_MAPS_API_KEY: DUMMY_GOOGLE_MAPS_API_KEY
        NEARIT_API_KEY: DUMMY_NEARIT_API_KEY
        TWITTER_API_KEY: DUMMY_TWITTER_API_KEY
        TWITTER_SECRET: DUMMY_TWITTER_SECRET

dependencies:
    pre:
        - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
        - if [ ! -e $ANDROID_HOME/tools/bin/sdkmanager ]; then echo y | android update sdk --no-ui --all --filter tools; fi
        - echo y | $ANDROID_HOME/tools/bin/sdkmanager --verbose "platform-tools" "patcher;v4" "build-tools;25.0.2" "extras;google;m2repository"
    cache_directories:
        - /usr/local/android-sdk-linux/tools
        - /usr/local/android-sdk-linux/platform-tools
        - /usr/local/android-sdk-linux/build-tools/25.0.2
        - /usr/local/android-sdk-linux/licenses
        - /home/ubuntu/.gradle/caches/
        - /home/ubuntu/.gradle/wrapper/
        - /home/ubuntu/.m2/repository

test:
    pre:
        - ./team-props/scripts/ci-mock-google-services-setup.sh
    override:
        - ./gradlew assembleRelease check --console=plain --stacktrace --continue
    post:
        - cp -R app/build/outputs/apk/* $CIRCLE_ARTIFACTS
        - mkdir -p $CIRCLE_TEST_REPORTS/reports/junit
        - cp -R app/build/test-results/* $CIRCLE_TEST_REPORTS/reports/junit
        - mkdir -p $CIRCLE_TEST_REPORTS/reports/lint
        - cp -R app/build/reports/lint-results.xml $CIRCLE_TEST_REPORTS/reports/lint
        - cp -R app/build/reports/pmd $CIRCLE_TEST_REPORTS/reports
        - cp -R app/build/reports/checkstyle $CIRCLE_TEST_REPORTS/reports
        - cp -R app/build/reports/findbugs $CIRCLE_TEST_REPORTS/reports
        - cp -R app/build/reports/findbugs $CIRCLE_TEST_REPORTS/reports<commit_msg>Only try collecting tests metadata if they exist<commit_after>machine:
    java:
        version: oraclejdk8
    environment:
        ANDROID_HOME: /usr/local/android-sdk-linux
        APPLICATION_ID: net.squanchy.example
        FABRIC_API_KEY: 0000000000000000000000000000000000000000 
        GOOGLE_MAPS_API_KEY: DUMMY_GOOGLE_MAPS_API_KEY
        NEARIT_API_KEY: DUMMY_NEARIT_API_KEY
        TWITTER_API_KEY: DUMMY_TWITTER_API_KEY
        TWITTER_SECRET: DUMMY_TWITTER_SECRET

dependencies:
    pre:
        - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
        - if [ ! -e $ANDROID_HOME/tools/bin/sdkmanager ]; then echo y | android update sdk --no-ui --all --filter tools; fi
        - echo y | $ANDROID_HOME/tools/bin/sdkmanager --verbose "platform-tools" "patcher;v4" "build-tools;25.0.2" "extras;google;m2repository"
        - if [ -f ./gradlew ]; then ./gradlew dependencies --console=plain;else gradle dependencies --console=plain;fi
    cache_directories:
        - /usr/local/android-sdk-linux/tools
        - /usr/local/android-sdk-linux/platform-tools
        - /usr/local/android-sdk-linux/build-tools/25.0.2
        - /usr/local/android-sdk-linux/licenses
        - /home/ubuntu/.gradle/caches/
        - /home/ubuntu/.gradle/wrapper/

test:
    pre:
        - ./team-props/scripts/ci-mock-google-services-setup.sh
    override:
        - ./gradlew assembleRelease check --console=plain --stacktrace --continue
    post:
        - cp -R app/build/outputs/apk/* $CIRCLE_ARTIFACTS
        - mkdir -p $CIRCLE_TEST_REPORTS/reports/junit
        - if [ -fe app/build/test-results ]; then cp -R app/build/test-results/* $CIRCLE_TEST_REPORTS/reports/junit; fi
        - mkdir -p $CIRCLE_TEST_REPORTS/reports/lint
        - if [ -f app/build/reports/lint-results.xml ]; then cp -R app/build/reports/lint-results.xml $CIRCLE_TEST_REPORTS/reports/lint; fi
        - if [ -f app/build/reports/pmd ]; then cp -R app/build/reports/pmd $CIRCLE_TEST_REPORTS/reports; fi
        - if [ -f app/build/reports/checkstyle ]; then cp -R app/build/reports/checkstyle $CIRCLE_TEST_REPORTS/reports; fi
        - if [ -f app/build/reports/findbugs ]; then cp -R app/build/reports/findbugs $CIRCLE_TEST_REPORTS/reports; fi
{'fraction_non_alphanumeric': 0.11776015380918048, 'fraction_numerical': 0.02571497236241288, 'mean_word_length': 2.5603079555175365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1135615', 'n_tokens_mistral': 1609, 'n_tokens_neox': 1444, 'n_words': 234}