.travis.yml 926 B

1234567891011121314151617181920212223242526
  1. language: python
  2. services:
  3. - docker
  4. python:
  5. - "2.7"
  6. # command to install dependencies
  7. before_install:
  8. - docker build --force-rm=true --build-arg branch=$TRAVIS_BRANCH -t kalliope-ubuntu1604 -f docker/ubuntu_16_04.dockerfile .
  9. - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse"
  10. - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse"
  11. - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse"
  12. - sudo apt-get update
  13. - sudo apt-get install $(cat install/files/deb-packages_requirements.txt)
  14. - sudo apt-get install libstdc++6
  15. - wget https://bootstrap.pypa.io/get-pip.py
  16. - sudo python get-pip.py
  17. install: "pip install -r install/files/python_requirements.txt"
  18. # command to run tests
  19. script:
  20. - pytest
  21. - docker run -it --rm kalliope-ubuntu1604