<commit_before>sudo: false
dist: trusty
language: c

compiler:
  - clang
  - gcc

addons:
  apt:
    packages:
    - check
    - cmake
    - cmake-data
    - libssl-dev
    - python-pip

install:
  - pip install --user pytest ecdsa curve25519-donna

script:
  - make
  - ./tests
  - ./test-openssl 1000
  - ITERS=10 py.test
  - mkdir _build && cd _build && cmake .. && make && cd ..

matrix:
  include:
    - env: BUILD=emscripten
      script:
        - cd emscripten && rm trezor-crypto.js && make docker-build && make test-correctness && cd ..
      services:
        - docker
      sudo: required
      install: true
      compiler: true
      addons:
        apt:
          packages:
            - nodejs

notifications:
  webhooks:
    urls:<commit_msg>travis.yml: Add Valgrind<commit_after>sudo: false
dist: trusty
language: c

compiler:
  - clang
  - gcc

addons:
  apt:
    packages:
    - check
    - cmake
    - cmake-data
    - libssl-dev
    - python-pip
    - valgrind

install:
  - pip install --user pytest ecdsa curve25519-donna

script:
  - make
  - ./tests
  - CK_TIMEOUT_MULTIPLIER=20 valgrind -q --error-exitcode=1 ./tests
  - ./test-openssl 1000
  - ITERS=10 py.test
  - mkdir _build && cd _build && cmake .. && make && cd ..

matrix:
  include:
    - env: BUILD=emscripten
      script:
        - cd emscripten && rm trezor-crypto.js && make docker-build && make test-correctness && cd ..
      services:
        - docker
      sudo: required
      install: true
      compiler: true
      addons:
        apt:
          packages:
            - nodejs

notifications:
  webhooks:
    urls:
{'fraction_non_alphanumeric': 0.11042183622828784, 'fraction_numerical': 0.015508684863523574, 'mean_word_length': 1.8003472222222223, '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': '2034905', 'n_tokens_mistral': 592, 'n_tokens_neox': 563, 'n_words': 141}