<commit_before>language: java
jdk: oraclejdk8
cache:
  directories:
    - $HOME/.m2


before_install:
  - wget https://github.com/jwilder/dockerize/releases/download/v0.2.0/dockerize-linux-amd64-v0.2.0.tar.gz
  - tar -xzvf dockerize-linux-amd64-v0.2.0.tar.gz
  - rm dockerize-linux-amd64-v0.2.0.tar.gz
  - ./dockerize -template vendor/docker/database.properties.tmpl:src/main/resources/database.properties
  - ./dockerize -template vendor/docker/log4j.xml.tmpl:src/main/resources/log4j.xml

  - wget https://github.com/jgm/pandoc/releases/download/1.15.2/pandoc-1.15.2-1-amd64.deb
  - sudo dpkg -i pandoc-1.15.2-1-amd64.deb
  - rm pandoc-1.15.2-1-amd64.deb

before_script:
  - mysql -e 'create database oaip_test;'

script:
  - bundle exec middleman build -e $RACK_ENV
  - mvn clean test

notifications:
  slack: datacite:Wt8En0ALoTA6Kjc5EOKNDWxN
  email: false<commit_msg>install ruby gems<commit_after>language: java
jdk: oraclejdk8
cache:
  directories:
    - $HOME/.m2


before_install:
  - wget https://github.com/jwilder/dockerize/releases/download/v0.2.0/dockerize-linux-amd64-v0.2.0.tar.gz
  - tar -xzvf dockerize-linux-amd64-v0.2.0.tar.gz
  - rm dockerize-linux-amd64-v0.2.0.tar.gz
  - ./dockerize -template vendor/docker/database.properties.tmpl:src/main/resources/database.properties
  - ./dockerize -template vendor/docker/log4j.xml.tmpl:src/main/resources/log4j.xml

  - wget https://github.com/jgm/pandoc/releases/download/1.15.2/pandoc-1.15.2-1-amd64.deb
  - sudo dpkg -i pandoc-1.15.2-1-amd64.deb
  - rm pandoc-1.15.2-1-amd64.deb

install:
  - bundle install

before_script:
  - mysql -e 'create database oaip_test;'

script:
  - bundle exec middleman build -e $RACK_ENV
  - mvn clean test

notifications:
  slack: datacite:Wt8En0ALoTA6Kjc5EOKNDWxN
  email: false
{'fraction_non_alphanumeric': 0.1405283867341203, 'fraction_numerical': 0.05733558178752108, 'mean_word_length': 3.3309002433090025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4455718', 'n_tokens_mistral': 814, 'n_tokens_neox': 743, 'n_words': 104}