.travis.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. language: python
  2. python:
  3. - 3.4
  4. - 3.5
  5. - 3.6
  6. - 3.7
  7. - 3.8-dev
  8. dist: xenial
  9. services:
  10. - docker
  11. cache: pip
  12. before_install:
  13. - pip install --upgrade pip wheel
  14. - pip install codecov coveralls flake8 mock pytest pytest-cov selenium
  15. # - docker build -t zeronet .
  16. # - docker run -d -v $PWD:/root/data -p 15441:15441 -p 127.0.0.1:43110:43110 zeronet
  17. install:
  18. - if [[ $TRAVIS_PYTHON_VERSION == 3.8-dev ]]; then pip install setuptools cffi 'cython>=0.28' git+git://github.com/gevent/gevent.git#egg=gevent; fi
  19. - pip install -r requirements.txt
  20. - pip list
  21. before_script:
  22. - openssl version -a
  23. # Add an IPv6 config - see the corresponding Travis issue
  24. # https://github.com/travis-ci/travis-ci/issues/8361
  25. - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
  26. sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
  27. fi
  28. script:
  29. - python -m pytest -x plugins/CryptMessage/Test
  30. - python -m pytest -x plugins/Bigfile/Test
  31. - python -m pytest -x plugins/AnnounceLocal/Test
  32. - python -m pytest -x plugins/OptionalManager/Test
  33. - python -m pytest src/Test --cov=src --cov-config src/Test/coverage.ini
  34. - mv plugins/disabled-Multiuser plugins/Multiuser && python -m pytest -x plugins/Multiuser/Test
  35. - mv plugins/disabled-Bootstrapper plugins/Bootstrapper && python -m pytest -x plugins/Bootstrapper/Test
  36. - flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics --exclude=src/lib/pybitcointools/
  37. after_success:
  38. - codecov
  39. - coveralls --rcfile=src/Test/coverage.ini
  40. notifications:
  41. email:
  42. recipients:
  43. hello@zeronet.io
  44. on_success: change