<commit_before>#sudo: false
#dist: precise
dist: bionic

env:
  global:
    - REAHLWORKSPACE=$HOME
    - EMAIL=<EMAIL>
    - DEBFULLNAME="<NAME>"
    - DEBEMAIL=$EMAIL
    - DISPLAY=:99.0
    - PATH=$HOME/bin:$PATH

language: python

jobs:
  include:
    - python: 3.6
    - python: 3.7
    - python: 3.8
    - python: 3.9

addons:
  postgresql: "10"
  apt:
    packages:
       # Basic apt dependencies
        - openssh-client
        - dpkg-dev
        - bzr
        - git
        - firefox
        - firefox-geckodriver

       # For compiling pip installed extensions we use
        - python-virtualenv
        - python-dev
        - gcc
        - cython
        - libxml2-dev
        - libxslt-dev
        - libsqlite3-0
        - sqlite3
        - postgresql-server-dev-all
        - zlib1g-dev
        - libjpeg62-dev
        - libfreetype6-dev
        - liblcms2-dev
        - libmysqlclient-dev

        # - phantomjs  # for reference... not allowed in apt addon
       # For testing of reahl-component
        - graphviz

services:
  - xvfb
  - postgresql
  #- mysql

cache:
  pip: true
  directories:
    - $HOME/testinstalls
    - $HOME/.cache/pip

before_install:
  # Make git happy
  - "travis/setupTestGit.sh"

  # Version checks of these things are useful for debugging
  - git --version
  - firefox --version
  - geckodriver --version
  - gpg --version

install:
  - "python scripts/bootstrap.py --script-dependencies"
  - CFLAGS="-O0" python scripts/bootstrap.py --pip-installs
  - "reahl createdb -U postgres reahl-web/etc"
  - "reahl setup -sX -- develop -N"

before_script:
  # Setup pip.conf to use local egg-dist also where we build stuff (for tox to get them)
  - "travis/configurePip.sh"

  # Setup ssh for password-less access to localhost
  - "travis/createTestSshKey.sh"
  - "travis/createTestGpgKey.sh"
  - "(reahl build -sdX || (EXITCODE=$?; shred -f $HOME/.gnupg/*; exit $EXITCODE))"

script:
  - "(reahl shell -sdXg tox && (EXITCODE=$?; shred -f $HOME/.gnupg/*; exit $EXITCODE))"

before_deploy:
  - travis/configurePypi.sh

deploy:
  skip_cleanup: true<commit_msg>trying to figure out which versions are used in travis<commit_after>#sudo: false
#dist: precise
dist: bionic

env:
  global:
    - REAHLWORKSPACE=$HOME
    - EMAIL=<EMAIL>
    - DEBFULLNAME="<NAME>"
    - DEBEMAIL=$EMAIL
    - DISPLAY=:99.0
    - PATH=$HOME/bin:$PATH

language: python

jobs:
  include:
    - python: 3.6
    - python: 3.7
    - python: 3.8
    - python: 3.9

addons:
  postgresql: "10"
  apt:
    packages:
       # Basic apt dependencies
        - openssh-client
        - dpkg-dev
        - bzr
        - git
        - firefox
        - firefox-geckodriver

       # For compiling pip installed extensions we use
        - python-virtualenv
        - python-dev
        - gcc
        - cython
        - libxml2-dev
        - libxslt-dev
        - libsqlite3-0
        - sqlite3
        - postgresql-server-dev-all
        - zlib1g-dev
        - libjpeg62-dev
        - libfreetype6-dev
        - liblcms2-dev
        - libmysqlclient-dev

        # - phantomjs  # for reference... not allowed in apt addon
       # For testing of reahl-component
        - graphviz

services:
  - xvfb
  - postgresql
  #- mysql

cache:
  pip: true
  directories:
    - $HOME/testinstalls
    - $HOME/.cache/pip

before_install:
  # Make git happy
  - "travis/setupTestGit.sh"

  # Version checks of these things are useful for debugging
  - git --version
  - firefox --version
  - which firefox
  - geckodriver --version
  - which geckodriver
  - gpg --version
  - echo $PATH

install:
  - "python scripts/bootstrap.py --script-dependencies"
  - CFLAGS="-O0" python scripts/bootstrap.py --pip-installs
  - "reahl createdb -U postgres reahl-web/etc"
  - "reahl setup -sX -- develop -N"

before_script:
  # Setup pip.conf to use local egg-dist also where we build stuff (for tox to get them)
  - "travis/configurePip.sh"

  # Setup ssh for password-less access to localhost
  - "travis/createTestSshKey.sh"
  - "travis/createTestGpgKey.sh"
  - "(reahl build -sdX || (EXITCODE=$?; shred -f $HOME/.gnupg/*; exit $EXITCODE))"

script:
  - "(reahl shell -sdXg tox && (EXITCODE=$?; shred -f $HOME/.gnupg/*; exit $EXITCODE))"

before_deploy:
  - travis/configurePypi.sh

deploy:
  skip_cleanup: true
{'fraction_non_alphanumeric': 0.11556383970177074, 'fraction_numerical': 0.010717614165890028, 'mean_word_length': 2.031779661016949, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1910224', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1510, 'n_words': 366}