<commit_before>notifications:
  email: false

matrix:
  include:
    - sudo: required
      services:
        - docker
      env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
    # FIXME: Currently i686 builds segfault (see issue #1))
    #- sudo: required
    #  services:
    #    - docker
    #  env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
    #       PRE_CMD=linux32

install:
  - pip install appveyor-artifacts
  - docker pull $DOCKER_IMAGE

script:
  - docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/build-wheels.sh
  - ls wheelhouse/

after_success:
  - appveyor-artifacts -c $(git rev-parse HEAD) -o jbaiter -n python-rust-fst download
  - mkdir -p dist
  - mv wheelhouse/* dist
  - ls dist

deploy:
  - provider: releases
    api_key:
      secure: <KEY>
    file_glob: true
    file: ${HOME}/build/${TRAVIS_REPO_SLUG}/dist/*
    on:
      tags: true
      repo: jbaiter/python-rust-fst
  - provider: pypi
    user: jbaiter
    password:
      secure: <KEY>
    on:<commit_msg>travis: Install appveyor-artifacts with sudo<commit_after>notifications:
  email: false

matrix:
  include:
    - sudo: required
      services:
        - docker
      env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
    # FIXME: Currently i686 builds segfault (see issue #1))
    #- sudo: required
    #  services:
    #    - docker
    #  env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
    #       PRE_CMD=linux32

install:
  - sudo pip install appveyor-artifacts
  - docker pull $DOCKER_IMAGE

script:
  - docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/build-wheels.sh
  - ls wheelhouse/

after_success:
  - appveyor-artifacts -c $(git rev-parse HEAD) -o jbaiter -n python-rust-fst download
  - mkdir -p dist
  - mv wheelhouse/* dist
  - ls dist

deploy:
  - provider: releases
    api_key:
      secure: <KEY>
    file_glob: true
    file: ${HOME}/build/${TRAVIS_REPO_SLUG}/dist/*
    on:
      tags: true
      repo: jbaiter/python-rust-fst
  - provider: pypi
    user: jbaiter
    password:
      secure: <KEY>
    on:
{'fraction_non_alphanumeric': 0.1103448275862069, 'fraction_numerical': 0.014778325123152709, 'mean_word_length': 2.4599659284497446, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4346237', 'n_tokens_mistral': 807, 'n_tokens_neox': 771, 'n_words': 176}