Revision 5d70e1d5f413ef2ebca4f805e26b77c544a1e1ef authored by disconnect3d on 13 February 2019, 16:27:29 UTC, committed by disconnect3d on 13 February 2019, 16:27:29 UTC
This was an internal function used just once and it was recreated each time the _consume was executed which can be slow.
1 parent c113a13
.travis.yml
dist: trusty
sudo: required
os:
- linux
language: python
python:
- 3.6.5
stages:
- prepare
- test
- submit
env:
global:
- CC_TEST_REPORTER_ID=db72f1ed59628c16eb0c00cbcd629c4c71f68aa1892ef42d18c7c2b8326f460a
- JOB_COUNT=2 # Two jobs generate test coverage
- PYTHONWARNINGS="default::ResourceWarning" # Enable ResourceWarnings
matrix:
- TEST_TYPE=examples
- TEST_TYPE=ethereum
- TEST_TYPE=native
- TEST_TYPE=other
branches:
only:
- master
- /^(?!wip-).+$/
cache:
pip: true
directories:
- $HOME/virtualenv/python3.6.5/lib/python3.6/site-packages
- $HOME/virtualenv/python3.6.5/bin/
jobs:
include:
- stage: prepare
env: TEST_TYPE=env
script:
- ./cc-test-reporter before-build
after_success:
- stage: submit
env: TEST_TYPE=env
script:
- true
after_script:
- aws s3 sync "s3://manticore-testdata/coverage/$TRAVIS_COMMIT" coverage/
- ./cc-test-reporter sum-coverage --output - --parts $JOB_COUNT coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage --input -
install:
- scripts/travis_install.sh $TEST_TYPE
script:
- scripts/travis_test.sh $TEST_TYPE
after_success:
- ./cc-test-reporter format-coverage -t coverage.py -o "coverage/codeclimate.$TEST_TYPE.json"
- aws s3 sync coverage/ "s3://manticore-testdata/coverage/$TRAVIS_COMMIT"
Computing file changes ...