.travis.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 apt-get update
  15. - sudo apt-get install $(cat install/files/deb-packages_requirements.txt)
  16. - sudo apt-get install libstdc++6 libpython3.4-dev
  17. - wget https://bootstrap.pypa.io/get-pip.py
  18. - sudo python get-pip.py
  19. install:
  20. - pip install -r install/files/python_requirements.txt
  21. - pip install python2-pythondialog || pip install pythondialog
  22. - pip install coveralls
  23. # command to run tests
  24. script:
  25. # - pytest
  26. - docker run -it --rm kalliope-ubuntu1604
  27. - docker run -it --rm kalliope-debian8
  28. - coverage run --source=kalliope -m unittest discover
  29. after_success:
  30. coveralls