.travis.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. language: python
  2. services:
  3. - docker
  4. python:
  5. - "2.7"
  6. - "3.4"
  7. # command to install dependencies
  8. before_install:
  9. - docker build --force-rm=true --build-arg TRAVIS_BRANCH=${TRAVIS_BRANCH} --build-arg TRAVIS_EVENT_TYPE=${TRAVIS_EVENT_TYPE} --build-arg TRAVIS_PULL_REQUEST_SLUG=${TRAVIS_PULL_REQUEST_SLUG} --build-arg TRAVIS_PULL_REQUEST_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH} -t kalliope-ubuntu1604 -f docker/ubuntu_16_04.dockerfile .
  10. - docker build --force-rm=true --build-arg TRAVIS_BRANCH=${TRAVIS_BRANCH} --build-arg TRAVIS_EVENT_TYPE=${TRAVIS_EVENT_TYPE} --build-arg TRAVIS_PULL_REQUEST_SLUG=${TRAVIS_PULL_REQUEST_SLUG} --build-arg TRAVIS_PULL_REQUEST_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH} -t kalliope-debian8 -f docker/debian8.dockerfile .
  11. - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse"
  12. - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse"
  13. - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse"
  14. - sudo add-apt-repository ppa:mc3man/trusty-media -y
  15. - sudo apt-get update
  16. - sudo apt-get install $(cat install/files/deb-packages_requirements.txt)
  17. - sudo apt-get install libstdc++6
  18. - wget https://bootstrap.pypa.io/get-pip.py
  19. - sudo python get-pip.py
  20. install:
  21. - pip install -r install/files/python_requirements.txt
  22. - pip install python2-pythondialog || pip install pythondialog
  23. - pip install coveralls
  24. # command to run tests
  25. script:
  26. # - pytest
  27. - docker run -it --rm kalliope-ubuntu1604
  28. - docker run -it --rm kalliope-debian8
  29. - coverage run --source=kalliope -m unittest discover
  30. after_success:
  31. coveralls