简体   繁体   English

Travis CI运行python脚本

[英]Travis CI run python script

I would like to run a python script during Travis build to generate also a signed APK . 我想在Travis构建期间运行python脚本,以生成也签名的APK I have made and placed all the necessary files, but got an error in Travis . 我已经制作并放置了所有必需的文件,但是在Travis出错了。

python: can't open file '/scripts/travis_upload_release_to_github.py': [Errno 2] No such file or directory

I tried also with sudo and copied scripts folder from root to android based project, because I build libGDX . 我也尝试使用sudo并将scripts文件夹从根目录复制到基于Android的项目,因为我构建了libGDX python2.7 is installed. python2.7已安装。 Where should this folder placed to execute during this process successfully? 在此过程中,该文件夹应放置在何处才能成功执行?

Your Travis build is looking for the scripts directory in the root directory "/" of the build machine's file system. 您的Travis构建正在构建机器的文件系统的根目录“ /”中寻找脚本目录。 Is the scripts directory in your repository or on the build machine? 脚本目录是在存储库中还是在构建计算机上? Have you tried removing the first / from the call to your python script, changing /scripts/...py to scripts/...py? 您是否尝试过删除python脚本调用中的第一个/,将/scripts/...py更改为scripts / ... py?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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