<commit_before>sudo: required

language: node_js
node_js:
  - "6"

services:
  - docker

before_install:
  - docker build -t yums/gitlab-ce-pages .
  - docker run --name gitlab-ce-pages -d --restart=always --env 'PAGE_PRIVATE_TOKEN=private_token_of_peeking_account' --env 'GITLAB_URL=http://localhost/' --env 'PROJECT_ROOT=public' --volume /srv/gitlab-ce-pages/public:/home/pages/public/ -p 8000:80 yums/gitlab-ce-pages
  - docker ps -a
  - docker exec gitlab-ce-pages /bin/sh -c "PROJECT_ROOT=public GITLAB_CE_PAGES_PUBLIC_DIR=public PAGE_PRIVATE_TOKEN=private_token npm test"

script:
  - cd src
  - npm install
  - WEBHOOK_URL=http://localhost:8000 npm run system_test<commit_msg>move unit test script from 'before_install' to 'script' in .travis.yml<commit_after>sudo: required

language: node_js
node_js:
  - "6"

services:
  - docker

before_install:
  - docker build -t yums/gitlab-ce-pages .
  - docker run --name gitlab-ce-pages -d --restart=always --env 'PAGE_PRIVATE_TOKEN=private_token_of_peeking_account' --env 'GITLAB_URL=http://localhost/' --env 'PROJECT_ROOT=public' --volume /srv/gitlab-ce-pages/public:/home/pages/public/ -p 8000:80 yums/gitlab-ce-pages
  - docker ps -a

script:
  - docker exec gitlab-ce-pages /bin/sh -c "PROJECT_ROOT=public GITLAB_CE_PAGES_PUBLIC_DIR=public PAGE_PRIVATE_TOKEN=private_token npm test"
  - cd src
  - npm install
  - WEBHOOK_URL=http://localhost:8000 npm run system_test
{'fraction_non_alphanumeric': 0.12368236120871398, 'fraction_numerical': 0.015460295151089248, 'mean_word_length': 4.014084507042254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3158382', 'n_tokens_mistral': 565, 'n_tokens_neox': 526, 'n_words': 112}