<commit_before>language: groovy

sudo: false

jdk:
  - oraclejdk7
  
env:
  - GRAILS_VERSION=2.5.3
  
before_install:
  - rm -rf ~/.gvm
  - curl -s get.sdkman.io | bash
  - source "$HOME/.sdkman/bin/sdkman-init.sh"
#  - curl -s get.gvmtool.net > ~/install_gvm.sh
#  - chmod 775 ~/install_gvm.sh
#  - ~/install_gvm.sh
  - echo sdkman_auto_answer=true > ~/.sdkman/etc/config
  - source "/home/travis/.sdkman/bin/sdkman-init.sh"
  # dev null is to avoid the need for user input https://github.com/sdkman/sdkman-cli/issues/101
  - sdk install grails $GRAILS_VERSION < /dev/null
  - sdk use grails $GRAILS_VERSION
#  - echo "gvm_auto_answer=true" > ~/.gvm/etc/config
#  - source ~/.gvm/bin/gvm-init.sh
#  - gvm install grails $GRAILS_VERSION || true
  - grails -version
  - sdk current grails
  - grails clean

branches:
  only:
    - master
    
script: grails test-app -integration

#./grailsw refresh-dependencies
#  && ./grailsw "test-app -integration"<commit_msg>travis is executing grails 2.4.4, trying to fix<commit_after>language: groovy

sudo: false

jdk:
  - oraclejdk7
  
env:
  - GRAILS_VERSION=2.5.3
  
before_install:
  - rm -rf ~/.gvm
  - curl -s get.sdkman.io | bash
  - source "$HOME/.sdkman/bin/sdkman-init.sh"
#  - curl -s get.gvmtool.net > ~/install_gvm.sh
#  - chmod 775 ~/install_gvm.sh
#  - ~/install_gvm.sh
  - echo sdkman_auto_answer=true > ~/.sdkman/etc/config
  - source "/home/travis/.sdkman/bin/sdkman-init.sh"
  # dev null is to avoid the need for user input https://github.com/sdkman/sdkman-cli/issues/101
  - sdk install grails $GRAILS_VERSION < /dev/null
  - sdk use grails $GRAILS_VERSION
#  - echo "gvm_auto_answer=true" > ~/.gvm/etc/config
#  - source ~/.gvm/bin/gvm-init.sh
#  - gvm install grails $GRAILS_VERSION || true
  - grails -version
  - sdk current grails
  - sdk remove grails 2.4.4

branches:
  only:
    - master
    
script: grails clean && grails test-app -integration

#./grailsw refresh-dependencies
#  && ./grailsw "test-app -integration"
{'fraction_non_alphanumeric': 0.1404126824358329, 'fraction_numerical': 0.013085052843482638, 'mean_word_length': 2.8304431599229285, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '442924', 'n_tokens_mistral': 831, 'n_tokens_neox': 808, 'n_words': 170}