1 # SSHing to localhost does not currently work in the the trusty containers, 2 # setting sudo to true means we will get a VM. VMs take longer to boot though.. 3 # https://github.com/travis-ci/travis-ci/issues/8647 4 sudo: true 5 language: python 6 python: 7 - "3.5" 8 - "3.6" 9 install: 10 - pip install -r tests/requirements.txt 11 - ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa 12 - cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 13 - chmod 600 ~/.ssh/authorized_keys 14 - cat ~/.ssh/known_hosts 15 - echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config 16 - ssh -vvvv localhost exit 17 script: 18 - ./setup.py install 19 - cd tests/ 20 - ./polysh_tests.py