简体   繁体   中英

Running Travis-CI off of github

I have a Windows machine so I' trying to have Travis CI run my python scripts directly from github. Is it possible to run Travis CI python scripts directly from my github and not from my local repository?

You can integrate TracisCI to your GItHub repo

That way, on each push, your associated TravisCI job will run and execute what you have specified.

Regarding your travis.yaml , it has to respect the yaml syntax format :

language: python 
sudo: enabled
python:
  -"3.5"  <========= incorrect: must be - "3.5"

See Building a Python Project : you will see a space between - and "xy" version.

Regarding the unittest error, see " unittest installation error Could not find a version that satisfies the requirement "

unittest is a standard module, which you don't need to install.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM