<commit_before>language: python
services:
  - postgresql
python:
  - 3.6
install:
  - pip install -r requirements/prod.txt
before_script:
  - psql -c 'create database ahmiasite;' -U postgres
  - cd ahmia
  - cp ahmia/settings/example.env ahmia/settings/.env
  - python manage.py collectstatic --noinput -c
  - python manage.py migrate
script:
  - python manage.py test<commit_msg>add Elasticsearch support to travis<commit_after>language: python
services:
  - postgresql
python:
  - 3.6
before_install:
  # You could put elasticsearch in "services" but in order to specify version:
  - curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.0.deb
  - sudo dpkg -i --force-confnew elasticsearch-6.4.0.deb
  - sudo service elasticsearch restart
install:
  - pip install -r requirements/prod.txt
before_script:
  - sleep 10  # give some time to ES to start
  - psql -c 'create database ahmiasite;' -U postgres
  - cd ahmia
  - cp ahmia/settings/example.env ahmia/settings/.env
  - python manage.py collectstatic --noinput -c
  - python manage.py migrate
script:
  - python manage.py test
{'fraction_non_alphanumeric': 0.0983754512635379, 'fraction_numerical': 0.010830324909747292, 'mean_word_length': 3.298449612403101, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4252097', 'n_tokens_mistral': 374, 'n_tokens_neox': 365, 'n_words': 109}