<commit_before>services:
  - docker

language: python

env:
  global:
    - BH_OPENMP_PROF=true
    - BH_OPENMP_VOLATILE=true
    - BH_OPENCL_PROF=true
    - BH_OPENCL_VOLATILE=true
    - TEST_RUN="/bh/test/python/run.py /bh/test/python/tests/test_*.py"
    - BENCHMARK_RUN="/bh/test/python/numpytest.py --file test_benchmarks.py"

script:
  - env | grep -E "BH_|EXEC" | sort > .env-file
  - cat .env-file
  - docker pull bohrium/wheel:latest
  - docker run -t --env-file .env-file bohrium/wheel

jobs:
  include:
    - stage: build docker image
      script:
        - docker login -u="$DOCKER_USER" -p="$DOCKER_PASSWORD"
        - docker build -t bohrium/wheel -f package/docker/create_wheel.dockerfile .
        - docker push bohrium/wheel

    - stage: verify
    # Test suite
      env: BH_STACK=openmp EXEC="python2.7 $TEST_RUN"
    - env: BH_STACK=opencl EXEC="python2.7 $TEST_RUN"
    - env: BH_STACK=openmp BH_OPENMP_MONOLITHIC=true EXEC="python2.7 $TEST_RUN"
#    - env: BH_STACK=proxy_opencl EXEC="bh_proxy_backend -a localhost -p 4200 & python2.7 /bohrium/test/python/run.py /bohrium/test/python/tests/test_!(nobh).py"
    - env: BH_STACK=openmp EXEC="python3.6 $TEST_RUN"
    - env: BH_STACK=opencl EXEC="python3.6 $TEST_RUN"

    # Benchmarks
    - env: BH_STACK=openmp EXEC="python2.7 $BENCHMARK_RUN"
    - env: BH_STACK=opencl EXEC="python2.7 $BENCHMARK_RUN"
    - env: BH_STACK=openmp EXEC="python3.6 $BENCHMARK_RUN"
    - env: BH_STACK=opencl EXEC="python3.6 $BENCHMARK_RUN"

notifications:
  slack: bohrium:BCAEW8qYK5fmkt8f5mW95GUe<commit_msg>travis: deploying pip package on success<commit_after>services:
  - docker

language: python

env:
  global:
    - BH_OPENMP_PROF=true
    - BH_OPENMP_VOLATILE=true
    - BH_OPENCL_PROF=true
    - BH_OPENCL_VOLATILE=true
    - TEST_RUN="/bh/test/python/run.py /bh/test/python/tests/test_*.py"
    - BENCHMARK_RUN="/bh/test/python/numpytest.py --file test_benchmarks.py"

script:
  - env | grep -E "BH_|EXEC" | sort > .env-file
  - cat .env-file
  - docker pull bohrium/wheel:latest
  - docker run -t --env-file .env-file bohrium/wheel

jobs:
  include:
    - stage: build docker image
      script:
        - docker login -u="$DOCKER_USER" -p="$DOCKER_PASSWORD"
        - docker build -t bohrium/wheel -f package/docker/create_wheel.dockerfile .
        - docker push bohrium/wheel

    - stage: verify
    # Test suite
      env: BH_STACK=openmp EXEC="python2.7 $TEST_RUN"
    - env: BH_STACK=opencl EXEC="python2.7 $TEST_RUN"
    - env: BH_STACK=openmp BH_OPENMP_MONOLITHIC=true EXEC="python2.7 $TEST_RUN"
#    - env: BH_STACK=proxy_opencl EXEC="bh_proxy_backend -a localhost -p 4200 & python2.7 /bohrium/test/python/run.py /bohrium/test/python/tests/test_!(nobh).py"
    - env: BH_STACK=openmp EXEC="python3.6 $TEST_RUN"
    - env: BH_STACK=opencl EXEC="python3.6 $TEST_RUN"

    # Benchmarks
    - env: BH_STACK=openmp EXEC="python2.7 $BENCHMARK_RUN"
    - env: BH_STACK=opencl EXEC="python2.7 $BENCHMARK_RUN"
    - env: BH_STACK=openmp EXEC="python3.6 $BENCHMARK_RUN"
    - env: BH_STACK=opencl EXEC="python3.6 $BENCHMARK_RUN"

deploy:
  provider: script
  script: docker pull bohrium/wheel:latest && docker run -e TWINE_USERNAME=$TWINE_USERNAME -e TWINE_PASSWORD=$TWINE_PASSWORD -e EXEC="/bh/deploy.sh" bohrium/wheel
  on:
    branch: master

notifications:
  slack: bohrium:BCAEW8qYK5fmkt8f5mW95GUe
{'fraction_non_alphanumeric': 0.12533412533412533, 'fraction_numerical': 0.01782001782001782, 'mean_word_length': 3.357050452781371, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3127397', 'n_tokens_mistral': 1429, 'n_tokens_neox': 1352, 'n_words': 239}