<commit_before>branches:
  except:
    - staging.tmp

language: java

jdk: oraclejdk8

env:
  - ORG_GRADLE_PROJECT_ideaVersion=LATEST-EAP-SNAPSHOT RUST_VERSION=nightly
  - ORG_GRADLE_PROJECT_ideaVersion=2017.1              RUST_VERSION=1.18.0
  - ORG_GRADLE_PROJECT_ideaVersion=2016.3              RUST_VERSION=1.18.0

matrix:
  allow_failures:
    - env: ORG_GRADLE_PROJECT_ideaVersion=LATEST-EAP-SNAPSHOT RUST_VERSION=nightly

before_script:
  - curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION -y
  - export PATH=$HOME/.cargo/bin:$PATH
  - rustfmt --help || cargo install rustfmt --force

install: true

# BACKCOMPAT:
# HACK: Force grammar kit to use current IDEA version when generating parser.
# For actual compilation and running the version from the matrix will be used.
script: ./check-license.sh && ORG_GRADLE_PROJECT_ideaVersion=2017.1 ./gradlew generateRustParser generateTomlParser && ./gradlew check -x generateRustParser -x generateTomlParser

# https://docs.travis-ci.com/user/languages/java/#Caching
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
  - rm     $HOME/.gradle/caches/4.0/fileHashes/fileHashes.bin
  - rm     $HOME/.gradle/caches/4.0/fileHashes/fileHashes.lock
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
    - $HOME/.cargo/registry/cache/
    - $HOME/.cargo/registry/src/
    - $HOME/.cargo/bin/<commit_msg>CI: fix grale cahches more robustly<commit_after>branches:
  except:
    - staging.tmp

language: java

jdk: oraclejdk8

env:
  - ORG_GRADLE_PROJECT_ideaVersion=LATEST-EAP-SNAPSHOT RUST_VERSION=nightly
  - ORG_GRADLE_PROJECT_ideaVersion=2017.1              RUST_VERSION=1.18.0
  - ORG_GRADLE_PROJECT_ideaVersion=2016.3              RUST_VERSION=1.18.0

matrix:
  allow_failures:
    - env: ORG_GRADLE_PROJECT_ideaVersion=LATEST-EAP-SNAPSHOT RUST_VERSION=nightly

before_script:
  - curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION -y
  - export PATH=$HOME/.cargo/bin:$PATH
  - rustfmt --help || cargo install rustfmt --force

install: true

# BACKCOMPAT:
# HACK: Force grammar kit to use current IDEA version when generating parser.
# For actual compilation and running the version from the matrix will be used.
script: ./check-license.sh && ORG_GRADLE_PROJECT_ideaVersion=2017.1 ./gradlew generateRustParser generateTomlParser && ./gradlew check -x generateRustParser -x generateTomlParser

# https://docs.travis-ci.com/user/languages/java/#Caching
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
  - rm -f  $HOME/.gradle/caches/*/fileHashes/fileHashes.bin
  - rm -f  $HOME/.gradle/caches/*/fileHashes/fileHashes.lock
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
    - $HOME/.cargo/registry/cache/
    - $HOME/.cargo/registry/src/
    - $HOME/.cargo/bin/
{'fraction_non_alphanumeric': 0.12306136210384357, 'fraction_numerical': 0.018880647336480108, 'mean_word_length': 3.337719298245614, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '5845424', 'n_tokens_mistral': 1135, 'n_tokens_neox': 1086, 'n_words': 196}