<commit_before>language: node_js
node_js: '9'

sudo: required

addons:
  apt:
    sources:
     - google-chrome
    packages:
     - google-chrome-stable

services:
  - docker

env:
  global:
    - DOCKER_COMPOSE_VERSION=1.14.0

before_install:
  - sudo rm /usr/local/bin/docker-compose
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin

before_script:
  - export DATABASE_TEST_URL=postgres://postgres:@localhost:5432/mpwo_test
  - export APP_SETTINGS=mpwo_api.config.TestingConfig
  - export REACT_APP_API_URL=http://localhost:5000/api/
  - export NODE_ENV=development
  - export TEST_URL=http://localhost:3000
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sleep 3
  - docker-compose -f docker-compose-ci.yml up --build -d

script:
  - psql -c 'create database mpwo_test;' -U postgres
  - docker-compose -f docker-compose-ci.yml run api flask init_db
  - sh test.sh

after_script:
  - docker-compose down<commit_msg>travis config update<commit_after>language: node_js
node_js: '9'

before_install:
  - stty cols 80

dist: trusty
sudo: required

addons:
  apt:
    sources:
     - google-chrome
    packages:
     - google-chrome-stable fluxbox

services:
  - docker

env:
  global:
    - DOCKER_COMPOSE_VERSION=1.14.0

before_install:
  - sudo rm /usr/local/bin/docker-compose
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin

before_script:
  - export DATABASE_TEST_URL=postgres://postgres:@localhost:5432/mpwo_test
  - export APP_SETTINGS=mpwo_api.config.TestingConfig
  - export REACT_APP_API_URL=http://127.0.0.1:5000/api/
  - export NODE_ENV=development
  - export TEST_URL=http://127.0.0.1:3000
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sleep 3
  - fluxbox >/dev/null 2>&1 &
  - docker-compose -f docker-compose-ci.yml up --build -d

script:
  - psql -c 'create database mpwo_test;' -U postgres
  - docker-compose -f docker-compose-ci.yml run api flask init_db
  - sh test.sh

after_script:
  - docker-compose down
{'fraction_non_alphanumeric': 0.1242344706911636, 'fraction_numerical': 0.02537182852143482, 'mean_word_length': 3.2117863720073663, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2580209', 'n_tokens_mistral': 952, 'n_tokens_neox': 877, 'n_words': 169}