.travis.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. language: python
  2. python:
  3. - 2.7
  4. services:
  5. - docker
  6. install:
  7. - pip install -U pip wheel
  8. - pip install -r requirements.txt
  9. - pip list
  10. before_script:
  11. - openssl version -a
  12. # Add an IPv6 config - see the corresponding Travis issue
  13. # https://github.com/travis-ci/travis-ci/issues/8361
  14. - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
  15. sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
  16. fi
  17. script:
  18. - python -m pytest -x plugins/CryptMessage/Test
  19. - python -m pytest -x plugins/Bigfile/Test
  20. - python -m pytest -x plugins/AnnounceLocal/Test
  21. - python -m pytest -x plugins/OptionalManager/Test
  22. - python -m pytest src/Test --cov=src --cov-config src/Test/coverage.ini
  23. before_install:
  24. - pip install -U pytest mock pytest-cov selenium
  25. - pip install codecov
  26. - pip install coveralls
  27. - docker build -t zeronet .
  28. - docker run -d -v $PWD:/root/data -p 15441:15441 -p 127.0.0.1:43110:43110 zeronet
  29. after_success:
  30. - codecov
  31. - coveralls --rcfile=src/Test/coverage.ini
  32. cache:
  33. directories:
  34. - $HOME/.cache/pip
  35. notifications:
  36. email:
  37. recipients:
  38. hello@zeronet.io
  39. on_success: change